You are here

public function CvWebformDecimalCommaValidator::supports in Clientside Validation 7.2

Overrides CvWebformValidator::supports

File

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

Class

CvWebformDecimalCommaValidator

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'] == ',';
}