You are here

function _role_expire_get_role in Role Expire 6

Same name and namespace in other branches
  1. 8 role_expire.module \_role_expire_get_role()
  2. 7 role_expire.module \_role_expire_get_role()
  3. 2.x role_expire.module \_role_expire_get_role()

Helper function; Get valid roles.

Return value

unknown_type

3 calls to _role_expire_get_role()
role_expire_add_expiration_input in ./role_expire.module
Add form element that accepts the role expiration time.
role_expire_cron in ./role_expire.module
Implementation of hook_cron().
role_expire_user in ./role_expire.module
Implementation of hook_user().

File

./role_expire.module, line 443
Role Expire module

Code

function _role_expire_get_role() {
  $roles = user_roles(TRUE);
  unset($roles[DRUPAL_AUTHENTICATED_RID]);
  return $roles;
}