You are here

public function CvWebformValidationMaxWordsValidator::getMessage in Clientside Validation 7.2

Overrides ClientsideValidationValidator::getMessage

File

clientside_validation_webform_validation/plugins/validator/webformvalidationmaxwords.inc, line 15

Class

CvWebformValidationMaxWordsValidator

Code

public function getMessage(array $element) {
  return format_plural($element['#cv_data']['maxWords'], '!title should be at most 1 word long.', '!title should be at most @count words long.', array(
    '!title' => $element['#title'],
  ));
}