function og_og_membership_delete in Organic groups 7
Same name and namespace in other branches
- 7.2 og.module \og_og_membership_delete()
Implements hook_og_membership_delete().
File
- ./
og.module, line 622 - Enable users to create and manage groups with roles and permissions.
Code
function og_og_membership_delete($membership) {
if ($membership->entity_type == 'user' && module_exists('rules')) {
rules_invoke_event('og_user_delete', $membership, entity_metadata_wrapper('user', $membership->etid));
}
}