aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-30 14:16:50 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-30 14:16:50 +0000
commit9b52e52ec3da4cb5b10f44c6dd46913171c4f54a (patch)
treedda9c1e9b6bd5b9e9543bc20f00f97b0447796bb /engine
parentfc11bcffa66e2baaae52261a84de13802bb1f072 (diff)
downloadelgg-9b52e52ec3da4cb5b10f44c6dd46913171c4f54a.tar.gz
elgg-9b52e52ec3da4cb5b10f44c6dd46913171c4f54a.tar.bz2
Events now triggered on plugin enable/disable
git-svn-id: https://code.elgg.org/elgg/trunk@2152 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/plugins.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php
index 6ef8f5779..922b28e11 100644
--- a/engine/lib/plugins.php
+++ b/engine/lib/plugins.php
@@ -407,6 +407,8 @@
$new_enabled[] = $plugin;
$new_enabled = array_unique($new_enabled);
+ trigger_elgg_event('plugin_enable', $plugin);
+
return $site->setMetaData('enabled_plugins', $new_enabled);
}
@@ -436,6 +438,8 @@
if ($plugin != $plug)
$new_enabled[] = $plug;
+ trigger_elgg_event('plugin_disable', $plugin);
+
return $site->setMetaData('enabled_plugins', $new_enabled);
}