You are here

function _role_delegation_roles in Role Delegation 6

Same name and namespace in other branches
  1. 5 role_delegation.module \_role_delegation_roles()
  2. 7 role_delegation.module \_role_delegation_roles()

Returns all existing roles, except anonymous and authenticated user.

4 calls to _role_delegation_roles()
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.
role_delegation_user in ./role_delegation.module
Implementation of hook_user().
role_delegation_user_operations in ./role_delegation.module
Implementation of hook_user_operations().

File

./role_delegation.module, line 147
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;
}