user_pwreset_timeout.install in User Password Reset Link Timeout 8
Same filename and directory in other branches
Install, update and uninstall functions for the user_pwreset_timeout module.
File
user_pwreset_timeout.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the user_pwreset_timeout module.
*/
/**
* Implements hook_uninstall().
*/
function user_pwreset_timeout_uninstall() {
// Reset password_reset_timeout to Drupal default (86400).
$config = \Drupal::configFactory()
->getEditable('user.settings');
$config
->set('password_reset_timeout', 86400)
->save();
}
Functions
Name![]() |
Description |
---|---|
user_pwreset_timeout_uninstall | Implements hook_uninstall(). |