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