public function Group::getRoles in Group 7
Retrieve all possible roles for a group.
Parameters
bool $special: Include special roles 'outsider' and 'member'. Defaults to TRUE.
bool $reset: Whether to reset the internal cache.
Return value
array A list of group_role entities.
See also
File
- classes/
group.inc, line 46 - Defines the Entity API class for groups.
Class
- Group
- Main class for groups.
Code
public function getRoles($special = TRUE, $reset = FALSE) {
return group_type_load($this->type)
->getRoles($special, $reset);
}