function phpmailer_update_7000 in PHPMailer 7.4
Same name and namespace in other branches
- 7.3 phpmailer.install \phpmailer_update_7000()
Enable PHPMailer as default mail system if it has been before.
File
- ./
phpmailer.install, line 137 - PHPMailer installation functions.
Code
function phpmailer_update_7000() {
// @todo Check whether the library exists?
if (strpos(variable_get('smtp_library', ''), 'phpmailer')) {
$mail_system = variable_get('mail_system', array(
'default-system' => 'DefaultMailSystem',
));
$mail_system['default-system'] = 'DrupalPHPMailer';
variable_set('mail_system', $mail_system);
// PHPMailer was the default mail engine, so it should be safe to remove the
// variable.
variable_del('smtp_library');
}
}