function session_limit_user_settings_validate in Session Limit 7.2
Same name and namespace in other branches
- 6.2 session_limit.module \session_limit_user_settings_validate()
- 6 session_limit.module \session_limit_user_settings_validate()
Session limit user settings form validation.
File
- ./
session_limit.module, line 400 - 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);
}
}