You are here

function Punctuation_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Character_Constraint::getValidationErrorMessage

File

constraints/constraint_punctuation.php, line 16

Class

Punctuation_Constraint

Code

function getValidationErrorMessage() {
  return t('Password must contain a minimum of %numChars punctuation %characters.', array(
    '%numChars' => $this->minimumConstraintValue,
    '%characters' => format_plural($this->minimumConstraintValue, t('character'), t('characters')),
  ));
}