From 8f396673fed76de9126bfbdd67a3b9bd02ef9449 Mon Sep 17 00:00:00 2001 From: LaxSlash Date: Wed, 23 Mar 2016 20:11:20 -0400 Subject: [PATCH] [ticket/14395] core.viewtopic_add_quickmod_option_before Added an event before the function phpbb_add_quickmod_option is called in the viewtopic.php file. This event serves two purposes - one, it is easier to add new quickmod options, and two, it allows an extenstion developer to check additional permissions and apply further authentication for the display of the quickmod options. PHPBB3-14395 --- phpBB/viewtopic.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 65aaaa7d87..eeb6444ceb 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -593,14 +593,14 @@ $quickmod_array = array( * 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 +* @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(