You are here

function session_limit_user_settings_validate in Session Limit 6.2

Same name and namespace in other branches
  1. 6 session_limit.module \session_limit_user_settings_validate()
  2. 7.2 session_limit.module \session_limit_user_settings_validate()

User settings form validation.

File

./session_limit.module, line 364
Limits multiple sessions per user.

Code

function session_limit_user_settings_validate($form, &$form_state) {
  if (!is_numeric($form_state['values']['session_limit'])) {
    form_set_error('session_limit', t('Only numeric submissions are valid.'));
    watchdog('session_limit', 'Invalid session limit submission for @user.', array(
      '@user' => $form_state['values']['account']->name,
    ), WATCHDOG_DEBUG);
  }
}