function user_pwreset_timeout_uninstall in User Password Reset Link Timeout 8
Same name and namespace in other branches
- 7 user_pwreset_timeout.install \user_pwreset_timeout_uninstall()
Implements hook_uninstall().
File
- ./
user_pwreset_timeout.install, line 11 - Install, update and uninstall functions for the user_pwreset_timeout module.
Code
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();
}