You are here

function change_pwd_page_update_8001 in Password Separate Form 8

Implements hook_update_N().

Integrate with password policy module.

File

./change_pwd_page.install, line 13
Install file.

Code

function change_pwd_page_update_8001() {

  // Integrate with password policy module. We update the change password page
  // route to the one provided by this module to ensure password_policy works
  // with our module.
  // Do it here for existing installations.
  if (\Drupal::moduleHandler()
    ->moduleExists('password_policy')) {
    _change_pwd_page_set_password_policy_setting();
  }
}