aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-08 13:06:20 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-08 13:22:20 +0200
commit70c90bea4f8ba6cc0c4f34f2f55f8171f1b7ba87 (patch)
treec6743be3c8487ae38c1506abd5df3976b8239911 /phpBB
parentcfd5fcbe2609024f57c900435b02346d5c7e28e0 (diff)
downloadforums-70c90bea4f8ba6cc0c4f34f2f55f8171f1b7ba87.tar
forums-70c90bea4f8ba6cc0c4f34f2f55f8171f1b7ba87.tar.gz
forums-70c90bea4f8ba6cc0c4f34f2f55f8171f1b7ba87.tar.bz2
forums-70c90bea4f8ba6cc0c4f34f2f55f8171f1b7ba87.tar.xz
forums-70c90bea4f8ba6cc0c4f34f2f55f8171f1b7ba87.zip
[feature/php-events] Fix doc and naming of acp_manage_forums_update_data_after
PHPBB3-9550
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_forums.php17
1 files changed, 15 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index 151e03f18f..542c3ffd77 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -1325,8 +1325,21 @@ class acp_forums
add_log('admin', 'LOG_FORUM_EDIT', $forum_data['forum_name']);
}
- $vars = array('forum_data', 'errors');
- extract($phpbb_dispatcher->trigger_event('core.acp_forums_update_forum_data_after', compact($vars)));
+ /**
+ * Event after a forum was updated or created
+ *
+ * @event core.acp_manage_forums_update_data_after
+ * @var array forum_data Array with forum data
+ * @var array forum_data_sql Array with data we updated
+ * @var bool is_new_forum Did we create a forum or update one
+ * If you want to overwrite this value,
+ * ensure to set forum_data_sql[forum_id]
+ * @var array errors Array of errors, should be strings and not
+ * language key.
+ * @since 3.1-A1
+ */
+ $vars = array('forum_data', 'forum_data_sql' 'is_new_forum', 'errors');
+ extract($phpbb_dispatcher->trigger_event('core.acp_manage_forums_update_data_after', compact($vars)));
return $errors;
}