function group_membership_load_multiple in Group 7
Load multiple group memberships by id.
Parameters
array $mids: (optional) An array of group membership ids to load.
bool $reset: (optional) Whether to reset the internal cache.
Return value
array An array of GroupMembership entities, keyed by their membership ids.
See also
13 calls to group_membership_load_multiple()
- ggroup_group_type_batch in modules/
ggroup/ ggroup.module - Batch callback for mass running membership inheritance.
- ggroup_inheritance_break in modules/
ggroup/ ggroup.module - Group membership break inheritance callback.
- ggroup_inheritance_revert in modules/
ggroup/ ggroup.module - Group membership revert inheritance callback.
- GProfile::getMember in modules/
gprofile/ classes/ gprofile.inc - Get the member this profile belongs to.
- GroupMembership::getByActiveStatus in classes/
group_membership.inc - Get all active memberships for a user.
File
- helpers/
group_membership.entity.inc, line 20 - Entity API related helper functions for group memberships.
Code
function group_membership_load_multiple(array $mids = array(), $reset = FALSE) {
return entity_load('group_membership', $mids, array(), $reset);
}