Add InitializePlugin and CleanupPlugin events

We add two events to allow plugins to initialize and cleanup.
This commit is contained in:
Evan Prodromou
2009-02-09 08:44:30 -05:00
parent 5d246299b6
commit f4e8cc6d9f
3 changed files with 14 additions and 0 deletions

View File

@@ -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');