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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user