You are here

function smtp_uninstall in SMTP Authentication Support 8

Same name and namespace in other branches
  1. 6 smtp.install \smtp_uninstall()
  2. 7.2 smtp.install \smtp_uninstall()
  3. 7 smtp.install \smtp_uninstall()

Implements hook_uninstall().

File

./smtp.install, line 14
The installation instructions for the SMTP Authentication Support.

Code

function smtp_uninstall() {

  // Restore previous mail system.
  _disable_smtp();

  // Cleaning garbage.
  $config = \Drupal::service('config.factory');
  $smtp_config = $config
    ->getEditable('smtp.settings');
  $smtp_config
    ->delete();
}