function og_membership_save in Organic groups 7
Same name and namespace in other branches
- 7.2 og.module \og_membership_save()
Inserts or updates a group membership object into the database.
Parameters
$membership: The group membership entity to be inserted.
Return value
Failure to write a record will return FALSE. Otherwise SAVED_NEW or SAVED_UPDATED is returned depending on the operation performed.
File
- ./
og.module, line 1171 - Enable users to create and manage groups with roles and permissions.
Code
function og_membership_save($membership) {
return entity_save('og_membership', $membership);
}