aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/ucp.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-03 23:41:00 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-03 23:41:00 +0200
commitb153637cb8bd58d571748f9539e81822be11d8bb (patch)
tree03a6b89beed10f6d600203a7f4663f144e029941 /phpBB/ucp.php
parent63d17e51813f1b80fd5c2ee33bcc67603c8da78b (diff)
downloadforums-b153637cb8bd58d571748f9539e81822be11d8bb.tar
forums-b153637cb8bd58d571748f9539e81822be11d8bb.tar.gz
forums-b153637cb8bd58d571748f9539e81822be11d8bb.tar.bz2
forums-b153637cb8bd58d571748f9539e81822be11d8bb.tar.xz
forums-b153637cb8bd58d571748f9539e81822be11d8bb.zip
[feature/php-events] Fix naming and doc of core.ucp_display_module_before
PHPBB3-9550
Diffstat (limited to 'phpBB/ucp.php')
-rw-r--r--phpBB/ucp.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/phpBB/ucp.php b/phpBB/ucp.php
index 53cd9d2b74..9730591698 100644
--- a/phpBB/ucp.php
+++ b/phpBB/ucp.php
@@ -328,8 +328,17 @@ if (!$auth->acl_get('u_sig'))
$module->set_display('profile', 'signature', false);
}
-$vars = array('module');
-extract($phpbb_dispatcher->trigger_event('core.ucp_modules', compact($vars)));
+/**
+* Use this event to enable and disable additional UCP modules
+*
+* @event core.ucp_display_module_before
+* @var p_master module Object holding all modules and their status
+* @var mixed id Active module category (can be the int or string)
+* @var string mode Active module
+* @since 3.1-A1
+*/
+$vars = array('module', 'id', 'mode');
+extract($phpbb_dispatcher->trigger_event('core.ucp_display_module_before', compact($vars)));
// Select the active module
$module->set_active($id, $mode);