mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12241] Event to add and/or modify acp_board configurations
PHPBB3-12241
This commit is contained in:
parent
6152d6c41e
commit
6db1a2bfad
1 changed files with 12 additions and 0 deletions
|
@ -456,6 +456,18 @@ class acp_board
|
|||
break;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Event to add and/or modify acp_board configurations
|
||||
*
|
||||
* @event core.acp_config_edit_add
|
||||
* @since 3.1-A4
|
||||
*/
|
||||
global $phpbb_dispatcher;
|
||||
$vars = array('display_vars', 'mode');
|
||||
extract($phpbb_dispatcher->trigger_event('core.acp_config_edit_add', compact($vars)));
|
||||
|
||||
|
||||
if (isset($display_vars['lang']))
|
||||
{
|
||||
$user->add_lang($display_vars['lang']);
|
||||
|
|
Loading…
Add table
Reference in a new issue