mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/php-events] Fix doc and naming of acp_manage_forums_update_data_after
PHPBB3-9550
This commit is contained in:
parent
cfd5fcbe26
commit
70c90bea4f
1 changed files with 15 additions and 2 deletions
|
@ -1325,8 +1325,21 @@ class acp_forums
|
||||||
add_log('admin', 'LOG_FORUM_EDIT', $forum_data['forum_name']);
|
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;
|
return $errors;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue