diff options
author | oxcom <andrii@crytek.de> | 2019-09-02 14:31:07 +0200 |
---|---|---|
committer | oxcom <andrii@crytek.de> | 2019-09-02 14:31:07 +0200 |
commit | a1e8282e672e0cddd2239c1ece30cf6eb96a09eb (patch) | |
tree | e9599a364012009acb779b083837f57905667da6 | |
parent | 9c15594fe498a8a1640bb89aa0c93800918a9798 (diff) | |
download | forums-a1e8282e672e0cddd2239c1ece30cf6eb96a09eb.tar forums-a1e8282e672e0cddd2239c1ece30cf6eb96a09eb.tar.gz forums-a1e8282e672e0cddd2239c1ece30cf6eb96a09eb.tar.bz2 forums-a1e8282e672e0cddd2239c1ece30cf6eb96a09eb.tar.xz forums-a1e8282e672e0cddd2239c1ece30cf6eb96a09eb.zip |
[ticket/16146] New core event: after move forum
PHPBB3-16146
-rw-r--r-- | phpBB/includes/acp/acp_forums.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php index cb0593b14a..03c178f968 100644 --- a/phpBB/includes/acp/acp_forums.php +++ b/phpBB/includes/acp/acp_forums.php @@ -1576,6 +1576,19 @@ class acp_forums $db->sql_query($sql); } + /** + * Event when content has been moved from one forum to another + * + * @event core.acp_manage_forums_move_content + * @var int from_id If of the current parent forum + * @var int to_id If of the new parent forum + * @var bool sync Shall we sync the "to"-forum's data + * + * @since 3.2.9-RC1 + */ + $vars = array('from_id', 'to_id', 'sync'); + extract($phpbb_dispatcher->trigger_event('core.acp_manage_forums_move_content_after', compact($vars))); + if ($sync) { // Delete ghost topics that link back to the same forum then resync counters |