function phpmailer_disable in PHPMailer 5.2
Same name and namespace in other branches
- 6.3 phpmailer.module \phpmailer_disable()
- 6.2 phpmailer.module \phpmailer_disable()
- 7.4 phpmailer.install \phpmailer_disable()
- 7.3 phpmailer.install \phpmailer_disable()
Implementation of hook_disable().
File
- ./
phpmailer.module, line 191 - Integrates the PHPMailer library for SMTP e-mail delivery.
Code
function phpmailer_disable() {
if (phpmailer_enabled()) {
variable_del('smtp_library');
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.'), 'warning');
}
}