mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17429] Adding event before users have been added to a group
PHPBB-17429
This commit is contained in:
parent
c7e68fb572
commit
5d0b1661f2
1 changed files with 20 additions and 0 deletions
|
@ -2759,6 +2759,26 @@ function group_user_add($group_id, $user_id_ary = false, $username_ary = false,
|
|||
return 'GROUP_USERS_EXIST';
|
||||
}
|
||||
|
||||
/**
|
||||
* Event before users are added to a group
|
||||
*
|
||||
* @event core.group_add_user_before
|
||||
* @var int group_id ID of the group to which users are added
|
||||
* @var string group_name Name of the group
|
||||
* @var array user_id_ary IDs of the users which are added
|
||||
* @var array username_ary names of the users which are added
|
||||
* @var int pending Pending setting, 1 if user(s) added are pending
|
||||
* @since 3.3.14
|
||||
*/
|
||||
$vars = array(
|
||||
'group_id',
|
||||
'group_name',
|
||||
'user_id_ary',
|
||||
'username_ary',
|
||||
'pending',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.group_add_user_before', compact($vars)));
|
||||
|
||||
$db->sql_transaction('begin');
|
||||
|
||||
// Insert the new users
|
||||
|
|
Loading…
Add table
Reference in a new issue