You are here

public function CvCoreIntegerValidator::supports in Clientside Validation 7.2

Overrides ClientsideValidationValidator::supports

File

plugins/validator/integer.inc, line 14

Class

CvCoreIntegerValidator

Code

public function supports(array $element, array &$form_state) {
  return parent::supports($element, $form_state) && isset($element['#type']) && $element['#type'] == 'textfield' && isset($element['#number_type']) && $element['#number_type'] == 'integer';
}