mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Merge pull request #2126 from nickvergessen/ticket/forumhulp/12241
[ticket/12241] Event to add and/or modify acp_board configurations
This commit is contained in:
@@ -28,7 +28,7 @@ class acp_board
|
||||
{
|
||||
global $db, $user, $auth, $template;
|
||||
global $config, $phpbb_root_path, $phpbb_admin_path, $phpEx;
|
||||
global $cache, $phpbb_container;
|
||||
global $cache, $phpbb_container, $phpbb_dispatcher;
|
||||
|
||||
$user->add_lang('acp/board');
|
||||
|
||||
@@ -456,6 +456,18 @@ class acp_board
|
||||
break;
|
||||
}
|
||||
|
||||
/**
|
||||
* Event to add and/or modify acp_board configurations
|
||||
*
|
||||
* @event core.acp_board_config_edit_add
|
||||
* @var array display_vars Array of config values to display and process
|
||||
* @var string mode Mode of the config page we are displaying
|
||||
* @var boolean submit Do we display the form or process the submission
|
||||
* @since 3.1.0-a4
|
||||
*/
|
||||
$vars = array('display_vars', 'mode', 'submit');
|
||||
extract($phpbb_dispatcher->trigger_event('core.acp_board_config_edit_add', compact($vars)));
|
||||
|
||||
if (isset($display_vars['lang']))
|
||||
{
|
||||
$user->add_lang($display_vars['lang']);
|
||||
|
Reference in New Issue
Block a user