You are here

function History_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Constraint::getValidationErrorMessage

File

constraints/constraint_history.php, line 49

Class

History_Constraint

Code

function getValidationErrorMessage() {
  return t("Password must not match !stmt.", array(
    '%windowSize' => $this->minimumConstraintValue,
    '!stmt' => format_plural($this->minimumConstraintValue, t('the last password used'), t('any of the previous %windowSize @password', array(
      '%windowSize' => $this->minimumConstraintValue,
      '@password' => format_plural($this->minimumConstraintValue, t('password'), t('passwords')),
    ))),
  ));
}