function group_roles in Group 7
Load group roles.
Parameters
array $names: (optional) An array of machine names to filter on.
Return value
array An array of GroupRole objects, keyed by their machine names.
See also
entity_load_multiple_by_name()
6 calls to group_roles()
- GroupMembership::getRoles in classes/
group_membership.inc - Get all roles for a group membership.
- GroupRoleController::delete in classes/
group_role.controller.inc - Delete a group role.
- GroupRoleUIController::roleTable in classes/
group_role.ui_controller.inc - Generate an overview table for group roles matching the given conditions.
- GroupType::getRoles in classes/
group_type.inc - Retrieve all possible roles for a group type.
- group_role_labels in helpers/
group_role.entity.inc - Retrieve all group role labels.
File
- helpers/
group_role.entity.inc, line 18 - Entity API related helper functions for group roles.
Code
function group_roles($names = FALSE) {
return entity_load_multiple_by_name('group_role', $names);
}