diff options
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r-- | engine/lib/plugins.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index b6aae9d7d..3649fddb7 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -432,7 +432,7 @@ function set_plugin_usersetting($name, $value, $user_guid = 0, $plugin_name = "" //$user->save(); // Hook to validate setting - $value = trigger_plugin_hook('plugin:usersetting', 'user', array( + $value = elgg_trigger_plugin_hook('plugin:usersetting', 'user', array( 'user' => $user, 'plugin' => $plugin_name, 'name' => $name, @@ -530,7 +530,7 @@ function set_plugin_setting($name, $value, $plugin_name = "") { if ($name != 'title') { // Hook to validate setting - $value = trigger_plugin_hook('plugin:setting', 'plugin', array( + $value = elgg_trigger_plugin_hook('plugin:setting', 'plugin', array( 'plugin' => $plugin_name, 'name' => $name, 'value' => $value @@ -681,7 +681,7 @@ function enable_plugin($plugin, $site_guid = 0) { // for other plugins that want to hook into this. $params = array('plugin' => $plugin, 'manifest' => $plugin_info); - if ($return && !trigger_elgg_event('enable', 'plugin', $params)) { + if ($return && !elgg_trigger_event('enable', 'plugin', $params)) { $return = FALSE; } @@ -775,7 +775,7 @@ function disable_plugin($plugin, $site_guid = 0) { if ($return) { // for other plugins that want to hook into this. $params = array('plugin' => $plugin, 'manifest' => $plugin_info); - if ($return && !trigger_elgg_event('disable', 'plugin', $params)) { + if ($return && !elgg_trigger_event('disable', 'plugin', $params)) { $return = FALSE; } @@ -879,4 +879,4 @@ function plugin_init() { } // Register a startup event -register_elgg_event_handler('init', 'system', 'plugin_init'); +elgg_register_event_handler('init', 'system', 'plugin_init'); |