aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2017-12-27 20:44:40 +0100
committerMarc Alexander <admin@m-a-styles.de>2017-12-27 20:44:40 +0100
commitd1f10d54fcbce175a4ac61681078e9fdd3b9fc69 (patch)
treefd51d65d0d4678ef9e4c86bd5e15f0910447a3dc /phpBB/includes/functions_admin.php
parentbdda36798bcb6190bed606cf80859a51e8c3f22b (diff)
parentbf55546d2d1481e909b918ed6cfef16e8ebc2afa (diff)
downloadforums-d1f10d54fcbce175a4ac61681078e9fdd3b9fc69.tar
forums-d1f10d54fcbce175a4ac61681078e9fdd3b9fc69.tar.gz
forums-d1f10d54fcbce175a4ac61681078e9fdd3b9fc69.tar.bz2
forums-d1f10d54fcbce175a4ac61681078e9fdd3b9fc69.tar.xz
forums-d1f10d54fcbce175a4ac61681078e9fdd3b9fc69.zip
Merge pull request #5055 from dsinn/ticket/15471
[ticket/15471] Add core events to ACP when pruning a forum
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 1ad41156f9..96916e1e43 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2369,6 +2369,16 @@ function prune($forum_id, $prune_mode, $prune_date, $prune_flags = 0, $auto_sync
$topic_list = array_unique($topic_list);
}
+ /**
+ * Perform additional actions before topic deletion via pruning
+ *
+ * @event core.prune_delete_before
+ * @var int[] topic_list The IDs of the topics to be deleted
+ * @since 3.2.2-RC1
+ */
+ $vars = array('topic_list');
+ extract($phpbb_dispatcher->trigger_event('core.prune_delete_before', compact($vars)));
+
return delete_topics('topic_id', $topic_list, $auto_sync, false);
}