mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
[feature/php-events] Fix naming and doc of core.acp_manage_forums_validate_data
PHPBB3-9550
This commit is contained in:
parent
3beda0cbab
commit
caf76b4ceb
1 changed files with 10 additions and 1 deletions
|
@ -932,8 +932,17 @@ class acp_forums
|
||||||
|
|
||||||
$errors = array();
|
$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');
|
$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'] == '')
|
if ($forum_data['forum_name'] == '')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue