You are here

public function CvWebformDecimalPointValidator::supports in Clientside Validation 7.2

Overrides CvWebformValidator::supports

File

clientside_validation_webform/plugins/validator/webformdecimalpoint.inc, line 12

Class

CvWebformDecimalPointValidator

Code

public function supports(array $element, array &$form_state) {
  if (!parent::supports($element, $form_state)) {
    return FALSE;
  }
  return $element['#webform_component']['type'] == 'number' && !$element['#webform_component']['extra']['integer'] && $element['#webform_component']['extra']['point'] == '.';
}