aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorWardormeur <wardormeur@gmail.com>2015-10-04 19:19:39 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-12-07 22:34:25 +0100
commit20e26a3920809b8abb163954743aaf0a5adf5271 (patch)
treee657eaa52494f72804aaf1bc7518e64c7f7f92d4 /phpBB/includes
parent07ae3e997c72317a0dd3c08be45aa6e760213102 (diff)
downloadforums-20e26a3920809b8abb163954743aaf0a5adf5271.tar
forums-20e26a3920809b8abb163954743aaf0a5adf5271.tar.gz
forums-20e26a3920809b8abb163954743aaf0a5adf5271.tar.bz2
forums-20e26a3920809b8abb163954743aaf0a5adf5271.tar.xz
forums-20e26a3920809b8abb163954743aaf0a5adf5271.zip
[ticket/14213] Adding event after users have been added to a group
Allow mapping with others CMS by exposing user configuration & changes PHPBB3-14213
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_user.php12
1 files changed, 12 insertions, 0 deletions
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))