diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 19:04:46 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-15 19:04:46 +0000 |
commit | 73d5bce6e46bc7eed6fc41362f041efcca9f9513 (patch) | |
tree | 91f4f8a25765472cb18cfe429e24042b049e4901 | |
parent | a8917878ba7005780ccf37a72ed148739a65bf83 (diff) | |
download | elgg-73d5bce6e46bc7eed6fc41362f041efcca9f9513.tar.gz elgg-73d5bce6e46bc7eed6fc41362f041efcca9f9513.tar.bz2 |
Updated egef_plugin_user_settings() to accept plugin_id instead of plugin_name.
git-svn-id: http://code.elgg.org/elgg/trunk@8254 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/plugins.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 872984751..e0a6f134d 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -985,7 +985,7 @@ function elgg_unset_all_plugin_settings($plugin_id = null) { * * @param array $options Array in the format: * - * plugin_name => NULL|STR The plugin name. Defaults to calling plugin + * plugin_id => NULL|STR The plugin id. Defaults to calling plugin * * plugin_user_setting_names => NULL|ARR private setting names * @@ -1007,8 +1007,8 @@ function elgg_unset_all_plugin_settings($plugin_id = null) { */ function elgg_get_entities_from_plugin_user_settings(array $options = array()) { // if they're passing it don't bother - if (!isset($options['plugin_name'])) { - $options['plugin_name'] = elgg_get_calling_plugin_id(); + if (!isset($options['plugin_id'])) { + $options['plugin_id'] = elgg_get_calling_plugin_id(); } $singulars = array('plugin_user_setting_name', 'plugin_user_setting_value', @@ -1041,7 +1041,7 @@ function elgg_get_entities_from_plugin_user_settings(array $options = array()) { } - $plugin_id = $options['plugin_name']; + $plugin_id = $options['plugin_id']; $prefix = elgg_namespace_plugin_private_setting('user_setting', '', $plugin_id); $options['private_setting_name_prefix'] = $prefix; |