You are here

public function PasswordPolicyExpire::setExpiredWarningMessage in Password Policy 7.2

Sets warning message indicating password has expired.

1 call to PasswordPolicyExpire::setExpiredWarningMessage()
PasswordPolicyExpire::init in plugins/item/expire.inc
Checks on init if the user password has expired.

File

plugins/item/expire.inc, line 283

Class

PasswordPolicyExpire
Policy item that handles password expirations.

Code

public function setExpiredWarningMessage() {
  if (!empty($this->config['expire_warning_message'])) {
    drupal_set_message($this->config['expire_warning_message'], 'warning');
  }
}