aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp
diff options
context:
space:
mode:
authorKailey Truscott <kinerity@yahoo.com>2015-06-28 01:14:08 -0400
committerKailey Truscott <kinerity@yahoo.com>2015-06-28 01:14:08 -0400
commit607f2e791f4b6a4c9670a3dad7e62c2c58939cbf (patch)
treefaa824bf29011272bea4a79d69f549beadd9d145 /phpBB/includes/mcp
parent7b903919bf17856fa1f16d9ad386c4b47e48bc81 (diff)
downloadforums-607f2e791f4b6a4c9670a3dad7e62c2c58939cbf.tar
forums-607f2e791f4b6a4c9670a3dad7e62c2c58939cbf.tar.gz
forums-607f2e791f4b6a4c9670a3dad7e62c2c58939cbf.tar.bz2
forums-607f2e791f4b6a4c9670a3dad7e62c2c58939cbf.tar.xz
forums-607f2e791f4b6a4c9670a3dad7e62c2c58939cbf.zip
[ticket/13974] Add core.mcp_change_poster_after event
Create a new event to perform additional tasks after chainging a post's poster. PHPBB3-13974
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r--phpBB/includes/mcp/mcp_post.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php
index 0d1df2b937..c53ddbfdea 100644
--- a/phpBB/includes/mcp/mcp_post.php
+++ b/phpBB/includes/mcp/mcp_post.php
@@ -559,6 +559,17 @@ function change_poster(&$post_info, $userdata)
$post_info = $post_info[$post_id];
+ /**
+ * This event allows you to perform additional tasks after changing a post's poster
+ *
+ * @event core.mcp_change_poster_after
+ * @var string userdata Information on a post's new poster
+ * @var array post_info Information on the affected post
+ * @since 3.1.6-RC1
+ */
+ $vars = array('userdata', 'post_info');
+ extract($phpbb_dispatcher->trigger_event('core.mcp_change_poster_after', compact($vars)));
+
// Now add log entry
add_log('mod', $post_info['forum_id'], $post_info['topic_id'], 'LOG_MCP_CHANGE_POSTER', $post_info['topic_title'], $from_username, $to_username);
}