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.group_delete_user_before
PHPBB3-9550
This commit is contained in:
parent
8d3389448b
commit
3ced9f58ea
1 changed files with 12 additions and 2 deletions
|
@ -3085,8 +3085,18 @@ function group_user_del($group_id, $user_id_ary = false, $username_ary = false,
|
||||||
}
|
}
|
||||||
unset($special_group_data);
|
unset($special_group_data);
|
||||||
|
|
||||||
$vars = array('group_id', 'user_id_ary', 'username_ary', 'group_name');
|
/**
|
||||||
extract($phpbb_dispatcher->trigger_event('core.group_user_del', compact($vars)));
|
* Event before users are removed from a group
|
||||||
|
*
|
||||||
|
* @event core.group_delete_user_before
|
||||||
|
* @var int group_id ID of the group from which users are deleted
|
||||||
|
* @var string group_name Name of the group
|
||||||
|
* @var array user_id_ary IDs of the users which are removed
|
||||||
|
* @var array username_ary names of the users which are removed
|
||||||
|
* @since 3.1-A1
|
||||||
|
*/
|
||||||
|
$vars = array('group_id', 'group_name', 'user_id_ary', 'username_ary');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.group_delete_user_before', compact($vars)));
|
||||||
|
|
||||||
$sql = 'DELETE FROM ' . USER_GROUP_TABLE . "
|
$sql = 'DELETE FROM ' . USER_GROUP_TABLE . "
|
||||||
WHERE group_id = $group_id
|
WHERE group_id = $group_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue