function hook_og_membership_type_delete

7.x-2.x og.api.php hook_og_membership_type_delete(OgMembershipType $og_membership)
7.x-1.x og.api.php hook_og_membership_type_delete(OgMembershipType $og_membership)

Responds to OG membership type deletion.

This hook is invoked after the OG membership type has been removed from the database.

Parameters

OgMembershipType $og_membership: The OG membership type that is being deleted.

See also

hook_entity_delete()

File

og/og.api.php, line 318
Hooks provided by the Organic groups module.

Code

function hook_og_membership_type_delete(OgMembershipType $og_membership) {
  db_delete('mytable')->condition('pid', entity_id('og_membership_type', $og_membership))->execute();
}