diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php
index 56fd5493a..9a8e4f354 100644
--- a/e107_handlers/plugin_class.php
+++ b/e107_handlers/plugin_class.php
@@ -1369,6 +1369,7 @@ class e107plugin
$pref = e107::getPref();
$sql = e107::getDb();
$mes = e107::getMessage();
+ $event = e107::getEvent();
$error = array(); // Array of error messages
$canContinue = TRUE; // Clear flag if must abort part way through
@@ -1632,6 +1633,26 @@ class e107plugin
}
+ if ($function == 'install')
+ {
+ $event->trigger('admin_plugin_install', $plug);
+ }
+
+ if ($function == 'uninstall')
+ {
+ $event->trigger('admin_plugin_uninstall', $plug);
+ }
+
+ if ($function == 'upgrade')
+ {
+ $event->trigger('admin_plugin_upgrade', $plug);
+ }
+
+ if ($function == 'refresh')
+ {
+ $event->trigger('admin_plugin_refresh', $plug);
+ }
+
}
// Placeholder.
@@ -2519,6 +2540,10 @@ class e107plugin
$text .= "
".LAN_CONFIGURE."";
}
+ // Event triggering after plugin installation.
+ $event = e107::getEvent();
+ $event->trigger('admin_plugin_install', $plug);
+
return $text;
}