aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp
diff options
context:
space:
mode:
author3D-I <marktravai@gmail.com>2018-10-02 18:18:38 +0200
committer3D-I <marktravai@gmail.com>2018-10-02 18:19:11 +0200
commit35c9357d2f951918c98e74e2d58739075fe523f5 (patch)
tree5e369ae97288ef3b988686a1881e1933f49533e9 /phpBB/includes/acp
parent001f32da95d4f8697ccc9a6107afc8dc68cbe48e (diff)
downloadforums-35c9357d2f951918c98e74e2d58739075fe523f5.tar
forums-35c9357d2f951918c98e74e2d58739075fe523f5.tar.gz
forums-35c9357d2f951918c98e74e2d58739075fe523f5.tar.bz2
forums-35c9357d2f951918c98e74e2d58739075fe523f5.tar.xz
forums-35c9357d2f951918c98e74e2d58739075fe523f5.zip
[ticket/15825] Add core.acp_manage_forums_move_content_sql_before
PHPBB3-15825
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r--phpBB/includes/acp/acp_forums.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index 6b841560c9..c2cbf252f9 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -1541,6 +1541,16 @@ class acp_forums
$table_ary = array(LOG_TABLE, POSTS_TABLE, TOPICS_TABLE, DRAFTS_TABLE, TOPICS_TRACK_TABLE);
+ /**
+ * Perform additional actions before move forum content
+ *
+ * @event core.acp_manage_forums_move_content_sql_before
+ * @var array table_ary Array of tables from which forum_id will be updated
+ * @since 3.2.4-RC1
+ */
+ $vars = array('table_ary');
+ extract($phpbb_dispatcher->trigger_event('core.acp_manage_forums_move_content_sql_before', compact($vars)));
+
foreach ($table_ary as $table)
{
$sql = "UPDATE $table