mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/php-events] Fix naming and doc of core.ucp_display_module_before
PHPBB3-9550
This commit is contained in:
parent
63d17e5181
commit
b153637cb8
1 changed files with 11 additions and 2 deletions
|
@ -328,8 +328,17 @@ if (!$auth->acl_get('u_sig'))
|
||||||
$module->set_display('profile', 'signature', false);
|
$module->set_display('profile', 'signature', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
$vars = array('module');
|
/**
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_modules', compact($vars)));
|
* Use this event to enable and disable additional UCP modules
|
||||||
|
*
|
||||||
|
* @event core.ucp_display_module_before
|
||||||
|
* @var p_master module Object holding all modules and their status
|
||||||
|
* @var mixed id Active module category (can be the int or string)
|
||||||
|
* @var string mode Active module
|
||||||
|
* @since 3.1-A1
|
||||||
|
*/
|
||||||
|
$vars = array('module', 'id', 'mode');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.ucp_display_module_before', compact($vars)));
|
||||||
|
|
||||||
// Select the active module
|
// Select the active module
|
||||||
$module->set_active($id, $mode);
|
$module->set_active($id, $mode);
|
||||||
|
|
Loading…
Add table
Reference in a new issue