aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}