mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[feature/events] Adding core.build_cfg_template event
See: http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=42801 for referance. PHPBB3-9550
This commit is contained in:
parent
3d4946f5f0
commit
c7b84eb329
1 changed files with 4 additions and 0 deletions
|
@ -194,6 +194,7 @@ function h_radio($name, $input_ary, $input_default = false, $id = false, $key =
|
|||
function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
|
||||
{
|
||||
global $user, $module;
|
||||
global $phpbb_dispatcher;
|
||||
|
||||
$tpl = '';
|
||||
$name = 'config[' . $config_key . ']';
|
||||
|
@ -305,6 +306,9 @@ function build_cfg_template($tpl_type, $key, &$new, $config_key, $vars)
|
|||
$tpl .= $vars['append'];
|
||||
}
|
||||
|
||||
$vars = array('tpl_type', 'key', 'new', 'config_key', 'vars', 'tpl');
|
||||
extract($phpbb_dispatcher->trigger_event('core.build_cfg_template', compact($vars)));
|
||||
|
||||
return $tpl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue