function og_load_multiple in Organic groups 7
Load multiple Group entities based on certain conditions.
Parameters
$gids: An array of group entity 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.
7 calls to og_load_multiple()
- og_access_node_access_records in og_access/
og_access.module - Implements hook_node_access_records().
- og_field_audience_default_value in ./
og.field.inc - Default value function for OG audience fields.
- og_field_audience_potential_groups_standard in ./
og.field.inc - Helper function for og_field_audience_potential_groups().
- og_field_widget_form in ./
og.field.inc - Implements hook_field_widget_form().
- og_label_multiple in ./
og.module - Get labels out of a list of group IDs.
File
- ./
og.module, line 1387 - Enable users to create and manage groups with roles and permissions.
Code
function og_load_multiple($gids = array(), $conditions = array(), $reset = FALSE) {
return entity_load('group', $gids, $conditions, $reset);
}