You are here

function Letter_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Character_Constraint::getValidationErrorMessage

2 methods override Letter_Constraint::getValidationErrorMessage()
Lowercase_Constraint::getValidationErrorMessage in constraints/constraint_lowercase.php
Uppercase_Constraint::getValidationErrorMessage in constraints/constraint_uppercase.php

File

constraints/constraint_letter.php, line 16

Class

Letter_Constraint

Code

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