aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-09-16 22:48:10 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-09-16 22:48:10 +0200
commiteab8a12fb8356391cb01bae909494ca828a8a6bc (patch)
treeaa5d0089b916cdcd25b1e29703197c1f7d1d5ca3 /phpBB/includes
parent087e219a09a301e193c6e425521deeab89318043 (diff)
parentd92a46ef0226f7993a6da198e7018fe97a7d0bef (diff)
downloadforums-eab8a12fb8356391cb01bae909494ca828a8a6bc.tar
forums-eab8a12fb8356391cb01bae909494ca828a8a6bc.tar.gz
forums-eab8a12fb8356391cb01bae909494ca828a8a6bc.tar.bz2
forums-eab8a12fb8356391cb01bae909494ca828a8a6bc.tar.xz
forums-eab8a12fb8356391cb01bae909494ca828a8a6bc.zip
Merge branch '3.1.x'
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_topic.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php
index 66bcdad72c..70794312f4 100644
--- a/phpBB/includes/mcp/mcp_topic.php
+++ b/phpBB/includes/mcp/mcp_topic.php
@@ -196,6 +196,30 @@ function mcp_topic_view($id, $mode, $action)
}
}
+ /**
+ * Event to modify the post data for the MCP topic review before assigning the posts
+ *
+ * @event core.mcp_topic_modify_post_data
+ * @var array attachments List of attachments post_id => array of attachments
+ * @var int forum_id The forum ID we are currently in
+ * @var int id ID of the tab we are displaying
+ * @var string mode Mode of the MCP page we are displaying
+ * @var array post_id_list Array with post ids we are going to display
+ * @var array rowset Array with the posts data
+ * @var int topic_id The topic ID we are currently reviewing
+ * @since 3.1.7-RC1
+ */
+ $vars = array(
+ 'attachments',
+ 'forum_id',
+ 'id',
+ 'mode',
+ 'post_id_list',
+ 'rowset',
+ 'topic_id',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.mcp_topic_modify_post_data', compact($vars)));
+
foreach ($rowset as $i => $row)
{
$message = $row['post_text'];