From 9b52e52ec3da4cb5b10f44c6dd46913171c4f54a Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 30 Sep 2008 14:16:50 +0000 Subject: Events now triggered on plugin enable/disable git-svn-id: https://code.elgg.org/elgg/trunk@2152 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/plugins.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engine/lib/plugins.php') 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); } -- cgit v1.2.3