mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-31 11:39:37 +02:00
Merge branch '3.2.x'
This commit is contained in:
commit
d8bcf479bf
@ -590,6 +590,33 @@ $quickmod_array = array(
|
||||
'topic_logs' => array('VIEW_TOPIC_LOGS', $auth->acl_get('m_', $forum_id)),
|
||||
);
|
||||
|
||||
/**
|
||||
* Event to modify data in the quickmod_array before it gets sent to the
|
||||
* phpbb_add_quickmod_option function.
|
||||
*
|
||||
* @event core.viewtopic_add_quickmod_option_before
|
||||
* @var int forum_id Forum ID
|
||||
* @var int post_id Post ID
|
||||
* @var array quickmod_array Array with quick moderation options data
|
||||
* @var array topic_data Array with topic data
|
||||
* @var int topic_id Topic ID
|
||||
* @var array topic_tracking_info Array with topic tracking data
|
||||
* @var string viewtopic_url URL to the topic page
|
||||
* @var bool allow_change_type Topic change permissions check
|
||||
* @since 3.1.9-RC1
|
||||
*/
|
||||
$vars = array(
|
||||
'forum_id',
|
||||
'post_id',
|
||||
'quickmod_array',
|
||||
'topic_data',
|
||||
'topic_id',
|
||||
'topic_tracking_info',
|
||||
'viewtopic_url',
|
||||
'allow_change_type',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_add_quickmod_option_before', compact($vars)));
|
||||
|
||||
foreach ($quickmod_array as $option => $qm_ary)
|
||||
{
|
||||
if (!empty($qm_ary[1]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user