diff options
author | rxu <rxu@mail.ru> | 2015-12-17 22:31:28 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2015-12-17 22:31:28 +0700 |
commit | 561344da53d77dd14298044bec90154bd232816f (patch) | |
tree | 4a7f1110d5805653bf3500e0c1f4edf2253e537d /phpBB/includes/functions_posting.php | |
parent | 67f3017274fdc749c9e5c75930dd15e3b1d0317d (diff) | |
download | forums-561344da53d77dd14298044bec90154bd232816f.tar forums-561344da53d77dd14298044bec90154bd232816f.tar.gz forums-561344da53d77dd14298044bec90154bd232816f.tar.bz2 forums-561344da53d77dd14298044bec90154bd232816f.tar.xz forums-561344da53d77dd14298044bec90154bd232816f.zip |
[ticket/14365] Add core event to the function topic_review()
Add core event to the function topic_review() in includes/functions_posting.php
to allow modifying posts list to review.
PHPBB3-14365
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r-- | phpBB/includes/functions_posting.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php index 75d77285a0..c7131f2c3f 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -1129,6 +1129,32 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id $db->sql_freeresult($result); } + /** + * Event to modify the posts list for topic reviews + * + * @event core.topic_review_modify_post_list + * @var array attachments Array with the post attachments data + * @var int cur_post_id Post offset ID + * @var int forum_id The topic's forum ID + * @var string mode The topic review mode + * @var array post_list Aray with the post IDs + * @var array rowset Array with the posts data + * @var bool show_quote_button Flag indicating if the quote button should be displayed + * @var int topic_id The topic ID that is being reviewed + * @since 3.1.8-RC1 + */ + $vars = array( + 'attachments', + 'cur_post_id', + 'forum_id', + 'mode', + 'post_list', + 'rowset', + 'show_quote_button', + 'topic_id', + ); + extract($phpbb_dispatcher->trigger_event('core.topic_review_modify_post_list', compact($vars))); + for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i) { // A non-existing rowset only happens if there was no user present for the entered poster_id |