1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

New e_event.php v2.x specification. (e_module is no longer required for registering events.) Example added to e107_plugins/_blank

This commit is contained in:
Cameron
2016-04-06 19:43:31 -07:00
parent 8143469f5c
commit 6d0aa7cdd9
4 changed files with 82 additions and 5 deletions

View File

@@ -36,6 +36,26 @@ class e107_event
function __construct()
{
$temp = e107::getAddonConfig('e_event');
if(!empty($temp))
{
foreach($temp as $plug=>$data)
{
foreach($data as $event)
{
$name = $event['name'];
$class = array($plug."_event", $event['function']);
if(!empty($name) && !empty($event['function']))
{
$this->register($name, $class);
}
}
}
}
}