function phpmailer_disable in PHPMailer 6.2
Same name and namespace in other branches
- 5.2 phpmailer.module \phpmailer_disable()
- 6.3 phpmailer.module \phpmailer_disable()
- 7.4 phpmailer.install \phpmailer_disable()
- 7.3 phpmailer.install \phpmailer_disable()
Implementation of hook_disable().
File
- ./
phpmailer.module, line 184 - Integrates the PHPMailer library for SMTP e-mail delivery.
Code
function phpmailer_disable() {
if (phpmailer_enabled()) {
variable_del('smtp_library');
variable_del('smtp_on');
drupal_set_message(t('PHPMailer has been disabled.'));
}
if (module_exists('mimemail') && variable_get('mimemail_engine', 'mimemail') == 'phpmailer') {
variable_del('mimemail_engine');
drupal_set_message(t('MimeMail e-mail engine has been reset to default.'), 'warning');
}
}