function og_membership_load_multiple in Organic groups 7
Same name and namespace in other branches
- 7.2 og.module \og_membership_load_multiple()
Load multiple group membership entities based on certain conditions.
Parameters
$gids: An array of group membership IDs.
$conditions: An array of conditions to match against the {entity} table.
$reset: A boolean indicating that the internal cache should be reset.
Return value
An array of group entities, indexed by group ID.
4 calls to og_membership_load_multiple()
- OgMigrateGroupMembershipTestCase::testOgUpgrade in ./
og.test - Test a successful upgrade.
- og_get_entity_groups in ./
og.module - Get the groups a content is associated with.
- og_get_groups_by_user in ./
og.module - Get the group IDs of all the groups a user is an approved member of.
- og_rules_get_group_content in ./
og.rules.inc - Action: Fetch group content of a certain entity type.
File
- ./
og.module, line 1127 - Enable users to create and manage groups with roles and permissions.
Code
function og_membership_load_multiple($ids = array(), $conditions = array(), $reset = FALSE) {
return entity_load('og_membership', $ids, $conditions, $reset);
}