diff options
Diffstat (limited to 'src/lib/PluginManager.class.php')
-rw-r--r-- | src/lib/PluginManager.class.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/PluginManager.class.php b/src/lib/PluginManager.class.php index 417eecc..2e3dd2b 100644 --- a/src/lib/PluginManager.class.php +++ b/src/lib/PluginManager.class.php @@ -3,6 +3,7 @@ class PluginManager { public $plugins = array(); private $loaded = false; + /** * Return an instance of the plugin with $plugin_name */ @@ -87,4 +88,10 @@ class PluginManager { } return $ret; } + + public function staticHook($plugin_name, $hook) { + require_once("$plugin_name.class.php"); + return call_user_func("$plugin_name::$hook"); + } + } |