aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/plugins.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-10 22:22:40 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-10 22:22:40 +0000
commitc8f6c3c934df01bf969e3d91ae67f0887de10da9 (patch)
treed21179fda1e19d540eb3ea56b31584f86fc1e338 /engine/lib/plugins.php
parenta7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4 (diff)
downloadelgg-c8f6c3c934df01bf969e3d91ae67f0887de10da9.tar.gz
elgg-c8f6c3c934df01bf969e3d91ae67f0887de10da9.tar.bz2
Fixes #2367: With fear and trepidation, converting events/plugin hooks to use elgg_ prefixed versions
git-svn-id: http://code.elgg.org/elgg/trunk@7284 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r--engine/lib/plugins.php10
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');