mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
[ticket/12241] Event to add and/or modify acp_board configurations
PHPBB3-12241
This commit is contained in:
committed by
Joas Schilling
parent
6152d6c41e
commit
6db1a2bfad
@@ -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']);
|
||||
|
Reference in New Issue
Block a user