deleteMembergroups

Description

Deletes one or more membergroups.

Syntax

bool deleteMembergroups (mixed $groups)



Parameter $groups

Expected type: Mixed
Description: The IDs of one or more groups that should be deleted



Return value

Expected type: Boolean
Description: True if the groups were successfully deleted. False otherwise


Notes

  • Requires the manage_membergroups permission.
  • Returns true on success or false on failure.
  • Has protection against deletion of protected membergroups (Unregistered Guests, Regular Members, Administrator, Moderator and Newbie)
  • Deletes the permissions linked to the membergroup.
  • Takes members out of the deleted membergroups.
Advertisement: