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