You are here

function hcaptcha_admin_settings_validate in hCaptcha 7

Validation function for hcaptcha_admin_settings().

See also

hcaptcha_admin_settings()

File

./hcaptcha.admin.inc, line 78

Code

function hcaptcha_admin_settings_validate($form, &$form_state) {
  $tabindex = $form_state['values']['hcaptcha_tabindex'];
  if (!is_numeric($tabindex)) {
    form_set_error('hcaptcha_tabindex', t('The tabindex must be an integer.'));
  }
}