You are here

function role_expire_get_roles_after_expiration in Role Expire 7

API function; Get roles to assign on expiration (global configuration).

Return value

array Returns an array where the key is the original rid and the value the one that has to be assigned on expiration. The array will be empty if configuration is not set.

1 call to role_expire_get_roles_after_expiration()
role_expire_cron in ./role_expire.module
Implements hook_cron().

File

./role_expire.module, line 219
Role Expire module

Code

function role_expire_get_roles_after_expiration() {
  $values_raw = variable_get('role_expire_default_roles', '');
  $values = empty($values_raw) ? array() : json_decode($values_raw, TRUE);
  return $values;
}