diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-11 16:31:26 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-11 16:31:26 +0200 |
commit | 13a34ce59f2e39b3f74082737058251557fb600c (patch) | |
tree | 4556e178625be19a427920238dc492c46b0d818f /phpBB/includes | |
parent | a6183c6484e871c11aecb372837a321b9645bd10 (diff) | |
parent | 4b26292df26e34530e5ad2725f45033abf84b296 (diff) | |
download | forums-13a34ce59f2e39b3f74082737058251557fb600c.tar forums-13a34ce59f2e39b3f74082737058251557fb600c.tar.gz forums-13a34ce59f2e39b3f74082737058251557fb600c.tar.bz2 forums-13a34ce59f2e39b3f74082737058251557fb600c.tar.xz forums-13a34ce59f2e39b3f74082737058251557fb600c.zip |
Merge remote-tracking branch 'rxu/ticket/12336' into develop-ascraeus
* rxu/ticket/12336:
[ticket/12336] Add functions_module.php core event
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_module.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/phpBB/includes/functions_module.php b/phpBB/includes/functions_module.php index ef2e009a6e..be066de0f0 100644 --- a/phpBB/includes/functions_module.php +++ b/phpBB/includes/functions_module.php @@ -80,7 +80,7 @@ class p_master function list_modules($p_class) { global $auth, $db, $user, $cache; - global $config, $phpbb_root_path, $phpEx; + global $config, $phpbb_root_path, $phpEx, $phpbb_dispatcher; // Sanitise for future path use, it's escaped as appropriate for queries $this->p_class = str_replace(array('.', '/', '\\'), '', basename($p_class)); @@ -284,6 +284,20 @@ class p_master $custom_func($row['module_mode'], $module_row); } + /** + * This event allows to modify parameters for building modules list + * + * @event core.modify_module_row + * @var string url_func Function for building 'url_extra' + * @var string lang_func Function for building the language name + * @var string custom_func Custom function for calling parameters on module init + * @var array row Array holding the basic module data + * @var array module_row Array holding the module display parameters + * @since 3.1.0-b3 + */ + $vars = array('url_func', 'lang_func', 'custom_func', 'row', 'module_row'); + extract($phpbb_dispatcher->trigger_event('core.modify_module_row', compact($vars))); + $this->module_ary[] = $module_row; } |