You are here

function user_expire_settings_validate in User Expire 7

Validates user expire settings.

File

./user_expire.admin.inc, line 104
Administrative pages for User expire module.

Code

function user_expire_settings_validate($form, &$form_state) {
  foreach ($form_state['values']['current_roles'] as $rid => $role) {
    if (!ctype_digit($form_state['values']['user_expire_' . $rid])) {
      form_set_error($rid, t('Inactivity period must be an integer.'));
    }
  }
}