You are here

function phpmailer_uninstall in PHPMailer 7.4

Same name and namespace in other branches
  1. 8.3 phpmailer.install \phpmailer_uninstall()
  2. 5.2 phpmailer.install \phpmailer_uninstall()
  3. 6.3 phpmailer.install \phpmailer_uninstall()
  4. 6 phpmailer.install \phpmailer_uninstall()
  5. 6.2 phpmailer.install \phpmailer_uninstall()
  6. 7.3 phpmailer.install \phpmailer_uninstall()

Implements hook_uninstall().

File

./phpmailer.install, line 109
PHPMailer installation functions.

Code

function phpmailer_uninstall() {
  $mail_system = variable_get('mail_system', array(
    'default-system' => 'DefaultMailSystem',
  ));
  $mail_system['default-system'] = 'DefaultMailSystem';
  variable_set('mail_system', $mail_system);
  variable_del('smtp_always_replyto');
  variable_del('smtp_auth_type');
  variable_del('smtp_debug');
  variable_del('smtp_debug_log');
  variable_del('smtp_encode_headers');
  variable_del('smtp_fromname');
  variable_del('smtp_hide_password');
  variable_del('smtp_host');
  variable_del('smtp_hostbackup');
  variable_del('smtp_keepalive');
  variable_del('smtp_on');
  variable_del('smtp_password');
  variable_del('smtp_port');
  variable_del('smtp_protocol');
  variable_del('smtp_username');
  variable_del('ssl_verify_peer');
  variable_del('ssl_verify_peer_name');
  variable_del('ssl_allow_self_signed');
}