From 20e26a3920809b8abb163954743aaf0a5adf5271 Mon Sep 17 00:00:00 2001 From: Wardormeur Date: Sun, 4 Oct 2015 19:19:39 +0200 Subject: [PATCH] [ticket/14213] Adding event after users have been added to a group Allow mapping with others CMS by exposing user configuration & changes PHPBB3-14213 --- phpBB/includes/functions_user.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index fe370750d9..66da6503ae 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -2754,6 +2754,18 @@ function group_user_add($group_id, $user_id_ary = false, $username_ary = false, } $db->sql_multi_insert(USER_GROUP_TABLE, $sql_ary); + /** + * Event after users are added to a group + * + * @event core.group_add_user_after + * @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 + * @since 3.6 + */ + $vars = array('group_id', 'group_name', 'user_id_ary', 'username_ary'); + extract($phpbb_dispatcher->trigger_event('core.group_add_user_after', compact($vars))); } if (sizeof($update_id_ary))