aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_topic.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-09-16 22:46:26 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-09-16 22:47:11 +0200
commitd92a46ef0226f7993a6da198e7018fe97a7d0bef (patch)
tree1344804b063603eb3fd33f691d38c162e1f3ac4c /phpBB/includes/mcp/mcp_topic.php
parent5b9d8283283eda68f3174199e3c1775d0ef398c1 (diff)
parent6b0f235cc90e59908cf672ba2350442a1a09de4e (diff)
downloadforums-d92a46ef0226f7993a6da198e7018fe97a7d0bef.tar
forums-d92a46ef0226f7993a6da198e7018fe97a7d0bef.tar.gz
forums-d92a46ef0226f7993a6da198e7018fe97a7d0bef.tar.bz2
forums-d92a46ef0226f7993a6da198e7018fe97a7d0bef.tar.xz
forums-d92a46ef0226f7993a6da198e7018fe97a7d0bef.zip
Merge pull request #3833 from rxu/ticket/14102
[ticket/14102] Add core event to the mcp_topic.php
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-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 8347830d0f..2217f8fdeb 100644
--- a/phpBB/includes/mcp/mcp_topic.php
+++ b/phpBB/includes/mcp/mcp_topic.php
@@ -194,6 +194,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'];