diff options
author | LaxSlash <copperhead14228@gmail.com> | 2016-03-22 19:29:33 -0400 |
---|---|---|
committer | LaxSlash <copperhead14228@gmail.com> | 2016-03-22 19:29:33 -0400 |
commit | 8a8428d002eb91330b08e8531b2a9aac51374c32 (patch) | |
tree | be25f69a797c91e71b5e5ab01846147ad89d53e4 /phpBB | |
parent | 575468931fa9e3cd9d6c7ad84167a628bff738c2 (diff) | |
download | forums-8a8428d002eb91330b08e8531b2a9aac51374c32.tar forums-8a8428d002eb91330b08e8531b2a9aac51374c32.tar.gz forums-8a8428d002eb91330b08e8531b2a9aac51374c32.tar.bz2 forums-8a8428d002eb91330b08e8531b2a9aac51374c32.tar.xz forums-8a8428d002eb91330b08e8531b2a9aac51374c32.zip |
[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
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/viewtopic.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 73c8e33b7f..757c158baa 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -592,7 +592,7 @@ $quickmod_array = array( * 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_after +* @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 @@ -601,7 +601,7 @@ $quickmod_array = array( * @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.8-RC1 +* @since 3.1.9-RC1 */ $vars = array( 'forum_id', @@ -613,7 +613,7 @@ $vars = array( 'viewtopic_url', 'allow_change_type', ); -extract($phpbb_dispatcher->trigger_event('core.viewtopic_add_quickmod_option_after', compact($vars))); +extract($phpbb_dispatcher->trigger_event('core.viewtopic_add_quickmod_option_before', compact($vars))); foreach ($quickmod_array as $option => $qm_ary) { |