mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-13 14:58:52 +00:00
[feature/events] Remove core.acp_modules_modules event
PHPBB3-9550
This commit is contained in:
parent
8af7d225ef
commit
8da33e2654
1 changed files with 6 additions and 17 deletions
|
@ -14,27 +14,16 @@ class acp_modules_info
|
||||||
{
|
{
|
||||||
function module()
|
function module()
|
||||||
{
|
{
|
||||||
global $phpbb_dispatcher;
|
return array(
|
||||||
|
|
||||||
$modules = array(
|
|
||||||
'acp' => array('title' => 'ACP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
|
||||||
'ucp' => array('title' => 'UCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
|
||||||
'mcp' => array('title' => 'MCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
|
||||||
);
|
|
||||||
|
|
||||||
$vars = array('modules');
|
|
||||||
$event = new phpbb_event_data(compact($vars));
|
|
||||||
$phpbb_dispatcher->dispatch('core.acp_modules_modules', $event);
|
|
||||||
extract($event->get_data_filtered($vars));
|
|
||||||
|
|
||||||
$data = array(
|
|
||||||
'filename' => 'acp_modules',
|
'filename' => 'acp_modules',
|
||||||
'title' => 'ACP_MODULE_MANAGEMENT',
|
'title' => 'ACP_MODULE_MANAGEMENT',
|
||||||
'version' => '1.0.0',
|
'version' => '1.0.0',
|
||||||
'modes' => $modules,
|
'modes' => array(
|
||||||
|
'acp' => array('title' => 'ACP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
||||||
|
'ucp' => array('title' => 'UCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
||||||
|
'mcp' => array('title' => 'MCP', 'auth' => 'acl_a_modules', 'cat' => array('ACP_MODULE_MANAGEMENT')),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function install()
|
function install()
|
||||||
|
|
Loading…
Add table
Reference in a new issue