public function CvWebformMaxValidator::getMessage in Clientside Validation 7.2
Overrides ClientsideValidationValidator::getMessage
1 call to CvWebformMaxValidator::getMessage()
- CvWebformMaxValidator::getJavascriptSettings in clientside_validation_webform/plugins/ validator/ webformmax.inc 
File
- clientside_validation_webform/plugins/ validator/ webformmax.inc, line 37 
Class
Code
public function getMessage(array $element) {
  $settings = $element['#webform_component']['extra'];
  return isset($settings['step']) && !empty($settings['step']) && $settings['step'] != 'any' ? t('!title field has to be less than @max and must be dividable by @step.', array(
    '!title' => $element['#title'],
    '@max' => $settings['max'],
    '@step' => $settings['step'],
  )) : t('!title field has to be less than @max.', array(
    '!title' => $element['#title'],
    '@max' => $settings['max'],
  ));
}