summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-02-09 08:44:30 -0500
committerEvan Prodromou <evan@controlyourself.ca>2009-02-09 08:44:30 -0500
commitf4e8cc6d9f88e78876baa54d0ffba77694c56a1b (patch)
tree1e55ae6a5724be020d1d39f729c4433f369c87e8 /lib/common.php
parent5d246299b630c55d98cc03eeb650561defbeeff4 (diff)
Add InitializePlugin and CleanupPlugin events
We add two events to allow plugins to initialize and cleanup.
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 64c7f2410..2f85eb7c5 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -212,3 +212,7 @@ function __autoload($class)
require_once(INSTALLDIR.'/lib/' . strtolower($class) . '.php');
}
}
+
+// Give plugins a chance to initialize in a fully-prepared environment
+
+Event::handle('InitializePlugin');