You are here

function Digit_Placement_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Character_Constraint::getValidationErrorMessage

File

constraints/constraint_digit_placement.php, line 30

Class

Digit_Placement_Constraint

Code

function getValidationErrorMessage() {
  return t('Password must have a minimum of %numChars %digits to place any digits at the start or end of the password.', array(
    '%numChars' => $this->minimumConstraintValue,
    '%digits' => format_plural($this->minimumConstraintValue, t('digit'), t('digits')),
  ));
}