function change_pwd_page_install in Password Separate Form 8
Implements hook_install().
File
- ./
change_pwd_page.install, line 26 - Install file.
Code
function change_pwd_page_install() {
// 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 cases where password_policy is installed before our module.
if (\Drupal::moduleHandler()
->moduleExists('password_policy')) {
_change_pwd_page_set_password_policy_setting();
}
}