aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-24 11:21:24 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-03-24 11:21:24 +0100
commitc36892f2fa4bc68643b57a09d3c546c16ce5eb8d (patch)
tree30b10184abc14ce8b03f8f47f2d0824c4ed34779 /phpBB
parent0194c78d19425a0d54b690bed210eebf34cd9007 (diff)
parent8f396673fed76de9126bfbdd67a3b9bd02ef9449 (diff)
downloadforums-c36892f2fa4bc68643b57a09d3c546c16ce5eb8d.tar
forums-c36892f2fa4bc68643b57a09d3c546c16ce5eb8d.tar.gz
forums-c36892f2fa4bc68643b57a09d3c546c16ce5eb8d.tar.bz2
forums-c36892f2fa4bc68643b57a09d3c546c16ce5eb8d.tar.xz
forums-c36892f2fa4bc68643b57a09d3c546c16ce5eb8d.zip
Merge pull request #4113 from LaxSlash/ticket/14395
[ticket/14395] Add event core.viewtopic_add_quickmod_option_before
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/viewtopic.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index fcc44abc33..eeb6444ceb 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -588,6 +588,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]))