You are here

function role_expire_user_admin_role_validate in Role Expire 6

Same name and namespace in other branches
  1. 8 role_expire.module \role_expire_user_admin_role_validate()
  2. 7 role_expire.module \role_expire_user_admin_role_validate()
  3. 2.x role_expire.module \role_expire_user_admin_role_validate()
1 string reference to 'role_expire_user_admin_role_validate'
role_expire_form_user_admin_role_alter in ./role_expire.module
Implementation of hook_form_FORM-ID_alter().

File

./role_expire.module, line 220
Role Expire module

Code

function role_expire_user_admin_role_validate($form, &$form_state) {
  if (isset($form_state['values']['role_expire']) && strlen($form_state['values']['role_expire']) && !is_numeric($form_state['values']['role_expire'])) {
    form_set_error('role_expire', 'Role expiry defaults needs to be numeric');
  }
}