You are here

function Character_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Constraint::getValidationErrorMessage

6 methods override Character_Constraint::getValidationErrorMessage()
Digit_Constraint::getValidationErrorMessage in constraints/constraint_digit.php
Digit_Placement_Constraint::getValidationErrorMessage in constraints/constraint_digit_placement.php
Length_Constraint::getValidationErrorMessage in constraints/constraint_length.php
Letter_Constraint::getValidationErrorMessage in constraints/constraint_letter.php
Letter_Digit_Constraint::getValidationErrorMessage in constraints/constraint_letter_digit.php

... See full list

File

constraints/constraint_character.php, line 22

Class

Character_Constraint

Code

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