aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWardormeur <wardormeur@gmail.com>2015-10-04 19:33:46 +0200
committerWardormeur <wardormeur@gmail.com>2015-10-04 19:33:54 +0200
commita11d97cb36eb427430d53b49018a870d39cae618 (patch)
tree53409d3d38da3203823fbc264363463e2fd763ef
parent7e379c4cea5452dad81adbc508b205badf49d25f (diff)
downloadforums-a11d97cb36eb427430d53b49018a870d39cae618.tar
forums-a11d97cb36eb427430d53b49018a870d39cae618.tar.gz
forums-a11d97cb36eb427430d53b49018a870d39cae618.tar.bz2
forums-a11d97cb36eb427430d53b49018a870d39cae618.tar.xz
forums-a11d97cb36eb427430d53b49018a870d39cae618.zip
[ticket/14212] Adding event after users have been removed to a group
The idea is to be able to map with others CMS by exposing most commons user configuration & changes. Difference between the event before and after group belonging removal is that users belongs to multiple groups, so that the belonging into a group also depends on the others groups (and not only the deleted one), which is not reflected before as the user is not yet deleted PHPBB-14212
-rw-r--r--phpBB/includes/functions_user.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index c46653db9e..b1509c22d0 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -2933,6 +2933,19 @@ function group_user_del($group_id, $user_id_ary = false, $username_ary = false,
// Clear permissions cache of relevant users
$auth->acl_clear_prefetch($user_id_ary);
+ /**
+ * Event after users are removed from a group
+ *
+ * @event core.group_delete_user_after
+ * @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.7
+ */
+ $vars = array('group_id', 'group_name', 'user_id_ary', 'username_ary');
+ extract($phpbb_dispatcher->trigger_event('core.group_delete_user_after', compact($vars)));
+
if (!$group_name)
{
$group_name = get_group_name($group_id);