You are here

function group_load_by_type in Group 7

Load all groups of a given type.

Parameters

string $type: The group type you want to load groups for.

Return value

array An array of Group entities, keyed by their group ids.

1 call to group_load_by_type()
GroupTypeController::delete in classes/group_type.controller.inc
Delete a group type.

File

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

Code

function group_load_by_type($type) {
  return group_load_by_property('type', $type);
}