function _role_delegation_roles in Role Delegation 5
Same name and namespace in other branches
- 6 role_delegation.module \_role_delegation_roles()
- 7 role_delegation.module \_role_delegation_roles()
Returns all existing roles, except anonymous and authenticated user.
3 calls to _role_delegation_roles()
- role_delegation_form_alter in ./
role_delegation.module - Implementation of hook_form_alter().
- role_delegation_perm in ./
role_delegation.module - Implementation of hook_perm().
- role_delegation_roles_form in ./
role_delegation.module - Provides a form for assigning roles to the current user.
File
- ./
role_delegation.module, line 145 - This module allows site administrators to grant some roles the authority to assign selected roles to users, without them needing the 'administer access control' permission.
Code
function _role_delegation_roles() {
$roles = user_roles(TRUE);
unset($roles[DRUPAL_AUTHENTICATED_RID]);
return $roles;
}