mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 16:27:38 +02:00
[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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user