You are here

function group_types in Group 7

Load group types.

Parameters

array $names: (optional) An array of machine names to filter on.

Return value

array An array of GroupType objects, keyed by their machine names.

See also

entity_load_multiple_by_name()

21 calls to group_types()
ggroup_config_form in modules/ggroup/admin/ggroup.config.inc
Add subgroup configuration to group type configuration.
ggroup_group_permission in modules/ggroup/ggroup.group.inc
Implements hook_group_permission().
ggroup_menu_local_tasks_alter in modules/ggroup/ggroup.router.inc
Implements hook_menu_local_tasks_alter().
ggroup_update_7001 in modules/ggroup/ggroup.install
Drop the ggroup_enabled_subgroups variable.
gnode_group_node_create_access in modules/gnode/gnode.module
Determines whether a user could create a node in a Group context.

... See full list

File

helpers/group_type.entity.inc, line 18
Entity API related helper functions for group types.

Code

function group_types($names = FALSE) {
  return entity_load_multiple_by_name('group_type', $names);
}