diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-10-01 13:43:48 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-10-01 14:54:26 +0200 |
commit | 95c0d81ba17c8ef6b85882143a46f22e970cc3b5 (patch) | |
tree | f2fa682c4a877dff799b4d3709e11deeeaf47dc2 /phpBB/includes/mcp | |
parent | 40cd7570e6f4da7cc60d83a3e99c72a2fb99e3f7 (diff) | |
download | forums-95c0d81ba17c8ef6b85882143a46f22e970cc3b5.tar forums-95c0d81ba17c8ef6b85882143a46f22e970cc3b5.tar.gz forums-95c0d81ba17c8ef6b85882143a46f22e970cc3b5.tar.bz2 forums-95c0d81ba17c8ef6b85882143a46f22e970cc3b5.tar.xz forums-95c0d81ba17c8ef6b85882143a46f22e970cc3b5.zip |
[ticket/13119] Add another event which is triggered independent from actions
PHPBB3-13119
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_ban.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_ban.php b/phpBB/includes/mcp/mcp_ban.php index 1eb79ea29e..4d2151fded 100644 --- a/phpBB/includes/mcp/mcp_ban.php +++ b/phpBB/includes/mcp/mcp_ban.php @@ -39,6 +39,22 @@ class mcp_ban $user->add_lang(array('acp/ban', 'acp/users')); $this->tpl_name = 'mcp_ban'; + /** + * Use this event to pass perform actions when a ban is issued or revoked + * + * @event core.mcp_ban_main + * @var bool bansubmit True if a ban is issued + * @var bool unbansubmit True if a ban is removed + * @var string mode Mode of the ban that is being worked on + * @since 3.1.0-RC5 + */ + $vars = array( + 'bansubmit', + 'unbansubmit', + 'mode', + ); + extract($phpbb_dispatcher->trigger_event('core.mcp_ban_main', compact($vars))); + // Ban submitted? if ($bansubmit) { |