Function removeMembersFromGroups
Remove one or more members from one or more membergroups. Requires the manage_membergroups permission. Function includes a protection against removing from implicit groups. Non-admins are not able to remove members from the admin group.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Membergroups.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Membergroups.php
integer|array |
$members |
The ID of a member or an array of member IDs |
null|array |
$groups = null |
groups to remove the member(s) from. If null, the specified members are stripped from all their membergroups. |
boolean |
$permissionCheckDone = false |
Whether we've already checked permissions prior to calling this function |
boolean |
$ignoreProtected = false |
Whether to ignore protected groups |
boolean
|
Whether the operation was successful |