You are here

public function CvCoreCaptchaValidator::supports in Clientside Validation 7.2

Overrides ClientsideValidationValidator::supports

File

clientside_validation_captcha/plugins/validator/captcha.inc, line 13

Class

CvCoreCaptchaValidator

Code

public function supports(array $element, array &$form_state) {
  return isset($element['#name']) && isset($element['#type']) && $element['#type'] == 'captcha' && isset($element['captcha_widgets']['captcha_response']);
}