function group_membership_load_by_user in Group 7
Load all group memberships for a given user.
Parameters
int $uid: The user id to load the memberships for.
Return value
array An array of GroupMembership entities, keyed by their membership ids.
2 calls to group_membership_load_by_user()
- group_entity_delete in ./
group.entity.inc - Implements hook_entity_delete().
- group_load_by_member in helpers/
group.entity.inc - Load all groups for a given user.
File
- helpers/
group_membership.entity.inc, line 76 - Entity API related helper functions for group memberships.
Code
function group_membership_load_by_user($uid) {
return group_memberships(array(
'uid' => $uid,
));
}