public function GroupMembershipController::delete in Group 7
Delete a group membership.
Overrides EntityAPIController::delete
File
- classes/
group_membership.controller.inc, line 115 - Defines the Entity API CRUD class for group memberships.
Class
- GroupMembershipController
- Controller for group membership entities.
Code
public function delete($ids, DatabaseTransaction $transaction = NULL) {
if (!empty($ids)) {
// Delete all associated group membership roles.
db_delete('group_membership_role')
->condition('mid', $ids, 'IN')
->execute();
}
parent::delete($ids, $transaction);
}