function smtp_update_7100 in SMTP Authentication Support 7
Same name and namespace in other branches
- 7.2 smtp.install \smtp_update_7100()
Back to default mail system if the status flag is off.
File
- ./
smtp.install, line 97 - The installation instructions for the SMTP Authentication Support.
Code
function smtp_update_7100() {
$mail_modes = variable_get('mail_system', array(
'default-system' => 'DefaultMailSystem',
));
if ($mail_modes['default-system'] == 'SmtpMailSystem' && !variable_get('smtp_on', FALSE)) {
$mail_modes['default-system'] = 'DefaultMailSystem';
variable_set('mail_system', $mail_modes);
}
}