You are here

public function MigrateDestinationOGMembership::rollback in Organic groups 7.2

Delete a membership.

Parameters

$id: IDs to be deleted.

File

includes/migrate/plugins/destinations/og_membership.inc, line 33
Import Organic group memberships.

Class

MigrateDestinationOGMembership
Destination class implementing migration into an OG Audience field.

Code

public function rollback(array $id) {
  $membership = og_membership_load($id);
  og_ungroup($membership->group_type, $membership->gid, $membership->entity_type, $membership->etid);
}