function queue_mail_enable in Queue Mail 6
Same name and namespace in other branches
- 5 queue_mail.install \queue_mail_enable()
File
- ./
queue_mail.install, line 43
Code
function queue_mail_enable() {
$lib = variable_get(DRUPAL_SMTP_LIBRARY, '');
if ($lib) {
drupal_set_message(t('The variable "smtp_library" is set to !lib. This means another module is using another smtp_library. Please beware that this can cause emails not to be sent properly. Please unset the "smtp_library" manually, or disable the module that uses it, then disable and reenable this module.', array(
'!lib' => $lib,
)), 'error');
}
else {
variable_set(DRUPAL_SMTP_LIBRARY, queue_mail_library_path());
}
}