diff options
author | kasimi <mail@kasimi.net> | 2019-07-21 10:26:41 +0200 |
---|---|---|
committer | kasimi <mail@kasimi.net> | 2019-07-23 21:13:08 +0200 |
commit | a12d93b8b8b254755718ae5e4b68f0ea7cc27421 (patch) | |
tree | dce017081066eee433ad51125d4990711bcd27f1 /phpBB/includes/mcp | |
parent | 9e9bdb69b5e00a4993b7ff9a6021044c9ec0c4dc (diff) | |
download | forums-a12d93b8b8b254755718ae5e4b68f0ea7cc27421.tar forums-a12d93b8b8b254755718ae5e4b68f0ea7cc27421.tar.gz forums-a12d93b8b8b254755718ae5e4b68f0ea7cc27421.tar.bz2 forums-a12d93b8b8b254755718ae5e4b68f0ea7cc27421.tar.xz forums-a12d93b8b8b254755718ae5e4b68f0ea7cc27421.zip |
[ticket/16106] Add core.mcp_main_before
PHPBB3-16106
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index 4bd783b279..744eaebd7d 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -41,6 +41,22 @@ class mcp_main $quickmod = ($mode == 'quickmod') ? true : false; + /** + * Event to perform additional actions before an MCP action is executed. + * + * @event core.mcp_main_before + * @var string action The action that is about to be performed + * @var string mode The mode in which the MCP is accessed, e.g. front, forum_view, topic_view, post_details, quickmod + * @var boolean quickmod Whether or not the action is performed via QuickMod + * @since 3.2.8-RC1 + */ + $vars = [ + 'action', + 'mode', + 'quickmod', + ]; + extract($phpbb_dispatcher->trigger_event('core.mcp_main_before', compact($vars))); + switch ($action) { case 'lock': |