diff options
author | rxu <rxu@mail.ru> | 2014-02-18 19:16:27 +0800 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2014-02-20 00:38:28 +0800 |
commit | b7dea19bf37de2078676e8a8c9a810fd6a48605b (patch) | |
tree | e81664ae22c6496ea5b5355326b4c33f306e5fa4 /phpBB/includes/mcp/mcp_main.php | |
parent | 233bdfa5f639e44a8315736bc917fb8322bd0e15 (diff) | |
download | forums-b7dea19bf37de2078676e8a8c9a810fd6a48605b.tar forums-b7dea19bf37de2078676e8a8c9a810fd6a48605b.tar.gz forums-b7dea19bf37de2078676e8a8c9a810fd6a48605b.tar.bz2 forums-b7dea19bf37de2078676e8a8c9a810fd6a48605b.tar.xz forums-b7dea19bf37de2078676e8a8c9a810fd6a48605b.zip |
[ticket/12213] Add MCP events for custom quick moderation options
Add core events to mcp.php and mcp_main.php. This allows
extensions to add and to handle custom quick moderation options.
PHPBB3-12213
Diffstat (limited to 'phpBB/includes/mcp/mcp_main.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index d9197da07e..016094c5d4 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -34,6 +34,7 @@ class mcp_main { global $auth, $db, $user, $template, $action; global $config, $phpbb_root_path, $phpEx, $request; + global $phpbb_dispatcher; $quickmod = ($mode == 'quickmod') ? true : false; @@ -151,6 +152,16 @@ class mcp_main mcp_restore_topic($topic_ids); break; + + default: + /** + * This event allows you to handle custom quickmod options + * + * @event core.modify_quickmod_actions + * @since 3.1.0-a4 + */ + $phpbb_dispatcher->dispatch('core.modify_quickmod_actions'); + break; } switch ($mode) |