Manual:Hooks/UserRemoveGroup

Details
Return false to override stock group removal.
 * $user: the user object that is to have a group removed
 * &$group: the group to be removed, can be modified