aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorDaniel Sinn <daniel.p.sinn@gmail.com>2016-11-29 13:34:28 -0500
committerDaniel Sinn <daniel.p.sinn@gmail.com>2016-11-29 13:34:28 -0500
commit78ff392b646e6dbac1934fe91440ab0a63d4e084 (patch)
treed3616c962880ee6680b97b672c9592e8cac757f6 /phpBB/includes/functions_admin.php
parenta3faf1fefc884c55d870b5fbd0d7b19371907e6c (diff)
downloadforums-78ff392b646e6dbac1934fe91440ab0a63d4e084.tar
forums-78ff392b646e6dbac1934fe91440ab0a63d4e084.tar.gz
forums-78ff392b646e6dbac1934fe91440ab0a63d4e084.tar.bz2
forums-78ff392b646e6dbac1934fe91440ab0a63d4e084.tar.xz
forums-78ff392b646e6dbac1934fe91440ab0a63d4e084.zip
[ticket/14882] Add core event to MCP after move post sync
PHPBB3-14882
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php26
1 files changed, 24 insertions, 2 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 1dc246ec33..61535efcd6 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -642,7 +642,7 @@ function move_posts($post_ids, $topic_id, $auto_sync = true)
* @event core.move_posts_before
* @var array post_ids Array of post ids to move
* @var string topic_id The topic id the posts are moved to
- * @var bool auto_sync Whether or not to perform auto sync
+ * @var bool auto_sync Whether or not to perform auto sync
* @var array forum_ids Array of the forum ids the posts are moved from
* @var array topic_ids Array of the topic ids the posts are moved from
* @var array forum_row Array with the forum id of the topic the posts are moved to
@@ -674,7 +674,7 @@ function move_posts($post_ids, $topic_id, $auto_sync = true)
* @event core.move_posts_after
* @var array post_ids Array of the moved post ids
* @var string topic_id The topic id the posts are moved to
- * @var bool auto_sync Whether or not to perform auto sync
+ * @var bool auto_sync Whether or not to perform auto sync
* @var array forum_ids Array of the forum ids the posts are moved from
* @var array topic_ids Array of the topic ids the posts are moved from
* @var array forum_row Array with the forum id of the topic the posts are moved to
@@ -698,6 +698,28 @@ function move_posts($post_ids, $topic_id, $auto_sync = true)
sync('topic_attachment', 'topic_id', $topic_ids);
sync('topic', 'topic_id', $topic_ids, true);
sync('forum', 'forum_id', $forum_ids, true, true);
+
+ /**
+ * Perform additional actions after move post sync
+ *
+ * @event core.move_posts_sync_after
+ * @var array post_ids Array of the moved post ids
+ * @var string topic_id The topic id the posts are moved to
+ * @var bool auto_sync Whether or not to perform auto sync
+ * @var array forum_ids Array of the forum ids the posts are moved from
+ * @var array topic_ids Array of the topic ids the posts are moved from
+ * @var array forum_row Array with the forum id of the topic the posts are moved to
+ * @since 3.1.11-RC1
+ */
+ $vars = array(
+ 'post_ids',
+ 'topic_id',
+ 'auto_sync',
+ 'forum_ids',
+ 'topic_ids',
+ 'forum_row',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.move_posts_sync_after', compact($vars)));
}
// Update posted information