You are here

function group_load in Group 7

Load a group.

Parameters

int $gid: The group id of the group you want to load.

bool $reset: (optional) Whether to reset the internal cache.

Return value

Group The loaded Group entity.

9 calls to group_load()
ggroup_entity_insert in modules/ggroup/ggroup.entity.inc
Implements hook_entity_insert().
ggroup_form_group_form_alter in modules/ggroup/forms/ggroup.inc
Implements hook_form_BASE_FORM_ID_alter().
gnode_node_access in modules/gnode/gnode.node_access.inc
Implements hook_node_access().
gprofile_group_membership_view in modules/gprofile/gprofile.entity.inc
Implements hook_group_membership_view().
group_group_member_operation_links in ./group.group.inc
Implements hook_group_member_operation_links().

... See full list

File

helpers/group.entity.inc, line 35
Entity API related helper functions for groups.

Code

function group_load($gid, $reset = FALSE) {
  $groups = group_load_multiple(array(
    $gid,
  ), array(), $reset);
  return reset($groups);
}