You are here

function Delay_Constraint::getValidationErrorMessage in Password Policy 5

Overrides Constraint::getValidationErrorMessage

File

constraints/constraint_delay.php, line 28

Class

Delay_Constraint

Code

function getValidationErrorMessage() {
  return t('Passwords may only be changed every %numHours @charHours.', array(
    '%numHours' => $this->minimumConstraintValue,
    '@charHours' => format_plural($this->minimumConstraintValue, t('hour'), t('hours')),
  ));
}