diff options
author | Erik Frèrejean <erikfrerejean@phpbb.com> | 2012-04-10 20:29:40 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-01 10:18:46 +0200 |
commit | c7b84eb32935ad78ae56fbf6382f95e8df11cdfe (patch) | |
tree | 91ce856bbdd161d469094176512e6fd03e0fbf95 /phpBB/includes/functions_acp.php | |
parent | 3d4946f5f017a51c7ae358ae450f4d9bb1cac70c (diff) | |
download | forums-c7b84eb32935ad78ae56fbf6382f95e8df11cdfe.tar forums-c7b84eb32935ad78ae56fbf6382f95e8df11cdfe.tar.gz forums-c7b84eb32935ad78ae56fbf6382f95e8df11cdfe.tar.bz2 forums-c7b84eb32935ad78ae56fbf6382f95e8df11cdfe.tar.xz forums-c7b84eb32935ad78ae56fbf6382f95e8df11cdfe.zip |
[feature/events] Adding core.build_cfg_template event
See: http://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=42801
for referance.
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_acp.php')
-rw-r--r-- | phpBB/includes/functions_acp.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions_acp.php b/phpBB/includes/functions_acp.php index dc61859363..47caecef02 100644 --- a/phpBB/includes/functions_acp.php +++ b/phpBB/includes/functions_acp.php @@ -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; } |