aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-12 10:27:13 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-12 10:27:13 +0200
commite603fa56dbfb7ab7ca1b2cc9dfe496068d477f14 (patch)
tree47d0236f97f4418df59f50ef8f84ce9d4975eea6
parent2668fa42ad977078883724e546e67c3439f28d58 (diff)
parentbf0596d0a1d7a4da54f5b6cf1c9af8b1d0b5958b (diff)
downloadforums-e603fa56dbfb7ab7ca1b2cc9dfe496068d477f14.tar
forums-e603fa56dbfb7ab7ca1b2cc9dfe496068d477f14.tar.gz
forums-e603fa56dbfb7ab7ca1b2cc9dfe496068d477f14.tar.bz2
forums-e603fa56dbfb7ab7ca1b2cc9dfe496068d477f14.tar.xz
forums-e603fa56dbfb7ab7ca1b2cc9dfe496068d477f14.zip
Merge pull request #3944 from Wardormeur/ticket/14212
[ticket/14212] Adding event after users have been removed to a group * Wardormeur/ticket/14212: [ticket/14212] Fix version number [ticket/14212] Adding event after users have been removed to a group
-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..fe370750d9 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.1.7-RC1
+ */
+ $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);