You are here

function cas_roles_cutsom_user_roles in CAS roles 7.2

Same name and namespace in other branches
  1. 8 cas_roles.module \cas_roles_cutsom_user_roles()
  2. 6 cas_roles.module \cas_roles_cutsom_user_roles()
  3. 7 cas_roles.module \cas_roles_cutsom_user_roles()

Function to remove the authenticated user role.

2 calls to cas_roles_cutsom_user_roles()
cas_roles_admin_settings in ./cas_roles.admin.inc
Administrative settings form.
cas_roles_cas_user_presave in ./cas_roles.module
Implements hook_cas_user_presave().

File

./cas_roles.module, line 216
Allows user account and profile attributes to be automatically populated using tokens. Provides basic tokens for attributes returned by the CAS server.

Code

function cas_roles_cutsom_user_roles($permission = NULL) {
  return array_diff_key(user_roles(TRUE, $permission), array(
    DRUPAL_AUTHENTICATED_RID => 'authenticated user',
  ));
}