aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-07-27 14:57:30 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-07-27 14:57:30 +0200
commitd06e9745c2091c6b3bb8ab084cc4d9672071c78d (patch)
tree2a0fea1e995e6b73eeafddbbf609b522eb7cc900 /phpBB
parent1b4f82cd1d523f2947b7b9e62ac8685648fa05dd (diff)
parenta12d93b8b8b254755718ae5e4b68f0ea7cc27421 (diff)
downloadforums-d06e9745c2091c6b3bb8ab084cc4d9672071c78d.tar
forums-d06e9745c2091c6b3bb8ab084cc4d9672071c78d.tar.gz
forums-d06e9745c2091c6b3bb8ab084cc4d9672071c78d.tar.bz2
forums-d06e9745c2091c6b3bb8ab084cc4d9672071c78d.tar.xz
forums-d06e9745c2091c6b3bb8ab084cc4d9672071c78d.zip
Merge pull request #5631 from kasimi/ticket/16106
[ticket/16106] Add core.mcp_main_before
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/mcp/mcp_main.php16
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':