diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-09-18 13:08:35 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-09-18 13:08:35 +0200 |
commit | 631b0f2dba136194380d83586252f3b5456e8656 (patch) | |
tree | 1844d09450b0f398a051a5503240f61338107ba1 /phpBB/includes/functions_user.php | |
parent | e76ea47fb8a2574d4faa93dbcbb5d03f2092cc12 (diff) | |
parent | c3578bc3e3837d961fd0ee9e22532a2e6f32ea51 (diff) | |
download | forums-631b0f2dba136194380d83586252f3b5456e8656.tar forums-631b0f2dba136194380d83586252f3b5456e8656.tar.gz forums-631b0f2dba136194380d83586252f3b5456e8656.tar.bz2 forums-631b0f2dba136194380d83586252f3b5456e8656.tar.xz forums-631b0f2dba136194380d83586252f3b5456e8656.zip |
Merge branch '3.1.x' into 3.2.x
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index a3dfafb000..f29f974ccf 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -3020,7 +3020,7 @@ function remove_default_rank($group_id, $user_ids) */ function group_user_attributes($action, $group_id, $user_id_ary = false, $username_ary = false, $group_name = false, $group_attributes = false) { - global $db, $auth, $user, $phpbb_container, $phpbb_log; + global $db, $auth, $user, $phpbb_container, $phpbb_log, $phpbb_dispatcher; // We need both username and user_id info $result = user_get_id_name($user_id_ary, $username_ary); @@ -3152,6 +3152,28 @@ function group_user_attributes($action, $group_id, $user_id_ary = false, $userna break; } + /** + * Event to perform additional actions on setting user group attributes + * + * @event core.user_set_group_attributes + * @var int group_id ID of the group + * @var string group_name Name of the group + * @var array user_id_ary IDs of the users to set group attributes + * @var array username_ary Names of the users to set group attributes + * @var array group_attributes Group attributes which were changed + * @var string action Action to perform over the group members + * @since 3.1.10-RC1 + */ + $vars = array( + 'group_id', + 'group_name', + 'user_id_ary', + 'username_ary', + 'group_attributes', + 'action', + ); + extract($phpbb_dispatcher->trigger_event('core.user_set_group_attributes', compact($vars))); + // Clear permissions cache of relevant users $auth->acl_clear_prefetch($user_id_ary); |