mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/php-events] Fix docs and naming of core.user_set_default_group
PHPBB3-9550
This commit is contained in:
parent
3ced9f58ea
commit
a05cd6d837
1 changed files with 12 additions and 1 deletions
|
@ -3511,8 +3511,19 @@ function group_set_user_default($group_id, $user_id_ary, $group_attributes = fal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event when the default group is set for an array of user
|
||||||
|
*
|
||||||
|
* @event core.user_set_default_group
|
||||||
|
* @var int group_id ID of the group
|
||||||
|
* @var array user_id_ary IDs of the users
|
||||||
|
* @var array group_attributes Group attributes which were changed
|
||||||
|
* @var array update_listing Update the list of moderators and foes
|
||||||
|
* @var array sql_ary User attributes which were changed
|
||||||
|
* @since 3.1-A1
|
||||||
|
*/
|
||||||
$vars = array('group_id', 'user_id_ary', 'group_attributes', 'update_listing', 'sql_ary');
|
$vars = array('group_id', 'user_id_ary', 'group_attributes', 'update_listing', 'sql_ary');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.group_set_user_default', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.user_set_default_group', compact($vars)));
|
||||||
|
|
||||||
if ($update_listing)
|
if ($update_listing)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue