aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-02-27 11:04:52 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-02-27 11:04:52 +0100
commitee7cba5df753bacc292e6faf09551f55e72fe9c8 (patch)
tree8d551ee0fa1252fe4c86de82294472b145f80e17 /phpBB
parent34389df1aecb7e72f0e61f05016f5ff5567ebb52 (diff)
parent2076280947adc24b3e9938ca72a24943ca6e880c (diff)
downloadforums-ee7cba5df753bacc292e6faf09551f55e72fe9c8.tar
forums-ee7cba5df753bacc292e6faf09551f55e72fe9c8.tar.gz
forums-ee7cba5df753bacc292e6faf09551f55e72fe9c8.tar.bz2
forums-ee7cba5df753bacc292e6faf09551f55e72fe9c8.tar.xz
forums-ee7cba5df753bacc292e6faf09551f55e72fe9c8.zip
Merge pull request #4085 from rxu/ticket/14365
[ticket/14365] Add core event to the function topic_review()
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/functions_posting.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index 75d77285a0..fae8e659bb 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 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