aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-08 12:50:47 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-08 12:50:47 +0200
commitcaf76b4cebccbfd7e348c89f7bce8d731fa2fd43 (patch)
tree0392ce0c7aa00c8849426273269cf3d9a03398da /phpBB
parent3beda0cbabe704b661e3d810db4c62a8d28a6bd6 (diff)
downloadforums-caf76b4cebccbfd7e348c89f7bce8d731fa2fd43.tar
forums-caf76b4cebccbfd7e348c89f7bce8d731fa2fd43.tar.gz
forums-caf76b4cebccbfd7e348c89f7bce8d731fa2fd43.tar.bz2
forums-caf76b4cebccbfd7e348c89f7bce8d731fa2fd43.tar.xz
forums-caf76b4cebccbfd7e348c89f7bce8d731fa2fd43.zip
[feature/php-events] Fix naming and doc of core.acp_manage_forums_validate_data
PHPBB3-9550
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/acp/acp_forums.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_forums.php b/phpBB/includes/acp/acp_forums.php
index c9225744bf..7af2fb822e 100644
--- a/phpBB/includes/acp/acp_forums.php
+++ b/phpBB/includes/acp/acp_forums.php
@@ -932,8 +932,17 @@ class acp_forums
$errors = array();
+ /**
+ * Validate the forum data before we create/update the forum
+ *
+ * @event core.acp_manage_forums_validate_data
+ * @var array forum_data Array with new forum data
+ * @var array errors Array of errors, should be strings and not
+ * language key.
+ * @since 3.1-A1
+ */
$vars = array('forum_data', 'errors');
- extract($phpbb_dispatcher->trigger_event('core.acp_forums_update_forum_data', compact($vars)));
+ extract($phpbb_dispatcher->trigger_event('core.acp_manage_forums_validate_data', compact($vars)));
if ($forum_data['forum_name'] == '')
{