aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-07-27 14:57:34 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-07-27 14:57:34 +0200
commit3433f61ccbbb177015985d7457dfe0735edd5cf7 (patch)
tree86a7383e1cf02c230bd0982d93ed66c746cfd3d2 /phpBB
parent84fdba604dbbc76ab0f25fe1f5d70edc1116b98d (diff)
parentd06e9745c2091c6b3bb8ab084cc4d9672071c78d (diff)
downloadforums-3433f61ccbbb177015985d7457dfe0735edd5cf7.tar
forums-3433f61ccbbb177015985d7457dfe0735edd5cf7.tar.gz
forums-3433f61ccbbb177015985d7457dfe0735edd5cf7.tar.bz2
forums-3433f61ccbbb177015985d7457dfe0735edd5cf7.tar.xz
forums-3433f61ccbbb177015985d7457dfe0735edd5cf7.zip
Merge branch '3.2.x' into 3.3.x
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':