mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
commit
287c2b95ee
1 changed files with 13 additions and 1 deletions
|
@ -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']);
|
||||
|
|
Loading…
Add table
Reference in a new issue