mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.1.x' into 3.2.x
This commit is contained in:
commit
200bcae2ae
1 changed files with 27 additions and 0 deletions
|
@ -590,6 +590,33 @@ $quickmod_array = array(
|
||||||
'topic_logs' => array('VIEW_TOPIC_LOGS', $auth->acl_get('m_', $forum_id)),
|
'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)
|
foreach ($quickmod_array as $option => $qm_ary)
|
||||||
{
|
{
|
||||||
if (!empty($qm_ary[1]))
|
if (!empty($qm_ary[1]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue