function group_membership_load_by_group in Group 7
Load all group memberships for a given group.
Parameters
int $gid: The group 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_group()
- Group::getMembers in classes/
group.inc - Get all members of a group.
- GroupController::delete in classes/
group.controller.inc - Delete a group.
File
- helpers/
group_membership.entity.inc, line 63 - Entity API related helper functions for group memberships.
Code
function group_membership_load_by_group($gid) {
return group_memberships(array(
'gid' => $gid,
));
}