1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[feature/php-events] Fix docs and naming of core.group_delete_user_before

PHPBB3-9550
This commit is contained in:
Joas Schilling 2012-07-28 19:27:58 +02:00
parent 8d3389448b
commit 3ced9f58ea

View File

@ -3085,8 +3085,18 @@ function group_user_del($group_id, $user_id_ary = false, $username_ary = false,
}
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 . "
WHERE group_id = $group_id