function hsts_admin_settings_form_validate in HTTP Strict Transport Security 7
Same name and namespace in other branches
- 6 hsts.admin.inc \hsts_admin_settings_form_validate()
Implements hook_validate().
_state
Parameters
$form:
File
- ./
hsts.admin.inc, line 63 - Admininstrative forms for hsts module.
Code
function hsts_admin_settings_form_validate($form, &$form_state) {
if (!is_numeric($form_state['values']['hsts_max_age']) || $form_state['values']['hsts_max_age'] < 0) {
form_set_error('hsts_max_age', t('Value is not a number or out of bounds.'));
}
}