public function Group::removeSubgroup in Group 7
Remove a subgroup from a group.
Parameters
Group $group: The subgroup to remove from the group.
File
- classes/
group.inc, line 229 - Defines the Entity API class for groups.
Class
- Group
- Main class for groups.
Code
public function removeSubgroup(Group $group) {
drupal_set_message(t('Deprecation notice!<br />Group::removeSubgroup() will soon be removed. Please use Group::removeEntity() instead.'), 'warning');
$this
->removeEntity($group->gid, 'group');
}