function group_load_by_name in Group 7
Load all groups with a given name.
Parameters
string $name: The name of the group you want to load.
Return value
array An array of Group entities, keyed by their group ids.
File
- helpers/
group.entity.inc, line 71 - Entity API related helper functions for groups.
Code
function group_load_by_name($name) {
return group_load_by_property('title', $name);
}