function group_type_labels in Group 7
Retrieve all group type labels.
Ideally used for populating option lists.
Return value
array An array of GroupType labels, keyed by their machine names.
2 calls to group_type_labels()
- group_pathauto in ./
group.pathauto.inc - Implements hook_pathauto().
- group_role_labels in helpers/
group_role.entity.inc - Retrieve all group role labels.
1 string reference to 'group_type_labels'
- group_entity_property_info in ./
group.entity.inc - Implements hook_entity_property_info().
File
- helpers/
group_type.entity.inc, line 30 - Entity API related helper functions for group types.
Code
function group_type_labels() {
$group_types = group_types();
foreach ($group_types as &$group_type) {
$group_type = $group_type
->label();
}
return $group_types;
}