mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[feature/events] Adding ledge group_user_del
Used by phpBB Gallery PHPBB3-9550
This commit is contained in:
parent
ae49d6dca2
commit
d4ace75370
1 changed files with 6 additions and 1 deletions
|
@ -2955,7 +2955,7 @@ function group_user_add($group_id, $user_id_ary = false, $username_ary = false,
|
|||
*/
|
||||
function group_user_del($group_id, $user_id_ary = false, $username_ary = false, $group_name = false)
|
||||
{
|
||||
global $db, $auth, $config;
|
||||
global $db, $auth, $config, $phpbb_dispatcher;
|
||||
|
||||
if ($config['coppa_enable'])
|
||||
{
|
||||
|
@ -3054,6 +3054,11 @@ 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');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.group_user_del', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
|
||||
$sql = 'DELETE FROM ' . USER_GROUP_TABLE . "
|
||||
WHERE group_id = $group_id
|
||||
AND " . $db->sql_in_set('user_id', $user_id_ary);
|
||||
|
|
Loading…
Add table
Reference in a new issue