You are here

function _recaptcha_v3_id_exists in reCAPTCHA v3 7

Returns whether a recaptcha v3 id already exists.

See also

form_validate_machine_name()

1 call to _recaptcha_v3_id_exists()
recaptcha_v3_admin_settings_delete_action in ./recaptcha_v3.admin.inc
1 string reference to '_recaptcha_v3_id_exists'
recaptcha_v3_admin_settings in ./recaptcha_v3.admin.inc
Form callback; administrative settings for Google No CAPTCHA.

File

./recaptcha_v3.module, line 293
Verifies if user is a human without necessity to solve a CAPTCHA.

Code

function _recaptcha_v3_id_exists($value) {
  return db_query_range('SELECT 1 FROM {recaptcha_v3_actions} WHERE id = :value', 0, 1, array(
    ':value' => $value,
  ))
    ->fetchField();
}