function recaptcha_v3_element_info_alter in reCAPTCHA v3 7
Same name and namespace in other branches
- 8 recaptcha_v3.module \recaptcha_v3_element_info_alter()
Place recaptcha v3 preprocess function at the beginning, so in this way it is possible to verify captcha and in case of fail, replace it to fallback captcha challenge.
Implements hook_element_info_alter().
File
- ./
recaptcha_v3.module, line 61 - Verifies if user is a human without necessity to solve a CAPTCHA.
Code
function recaptcha_v3_element_info_alter(&$type) {
array_unshift($type['captcha']['#process'], 'recaptcha_v3_element_captcha_process');
$type['captcha']['#process'][] = 'recaptcha_v3_element_captcha_process_validate';
}