function secure_permissions_get_roles in Secure Permissions 6
Same name and namespace in other branches
- 7.2 secure_permissions.module \secure_permissions_get_roles()
- 7 secure_permissions.module \secure_permissions_get_roles()
Get all roles defined by the API.
1 call to secure_permissions_get_roles()
- secure_permissions_build_roles in ./
secure_permissions.module - Build the roles table correctly.
File
- ./
secure_permissions.module, line 147 - Secure Permissions module file.
Code
function secure_permissions_get_roles() {
$roles = array_unique(module_invoke_all('secure_permissions_roles'));
sort($roles);
return $roles;
}