diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-02-27 11:05:10 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-02-27 11:05:10 +0100 |
commit | a21d1680d2dbf5a8d93332fb0a18ec3d97190eb6 (patch) | |
tree | 75804e3d9b0335d0bd26b5443ce63acfe15ee0c3 /phpBB/includes/functions_posting.php | |
parent | 47f70a4cfd07f10d871980450c1421eca3ee8625 (diff) | |
parent | 7c41be4f516708d0eb835db0bd8418730d46ec1e (diff) | |
download | forums-a21d1680d2dbf5a8d93332fb0a18ec3d97190eb6.tar forums-a21d1680d2dbf5a8d93332fb0a18ec3d97190eb6.tar.gz forums-a21d1680d2dbf5a8d93332fb0a18ec3d97190eb6.tar.bz2 forums-a21d1680d2dbf5a8d93332fb0a18ec3d97190eb6.tar.xz forums-a21d1680d2dbf5a8d93332fb0a18ec3d97190eb6.zip |
Merge branch '3.2.x'
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 56d2408e88..58753122cc 100644 --- a/phpBB/includes/functions_posting.php +++ b/phpBB/includes/functions_posting.php @@ -977,6 +977,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 Array 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.9-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 |