function webform_update_7421 in Webform 7.4
Set the administrator option for an HTML-capable mail system to the current automatically-detected option.
File
- ./
webform.install, line 2103 - Webform module install/schema hooks.
Code
function webform_update_7421() {
$capable = array_reduce(array(
'mandrill',
'mimemail',
'htmlmail',
), function ($carry, $module) {
return $carry || module_exists($module);
}, FALSE);
variable_set('webform_email_html_capable', $capable);
return $capable ? t('An HTML-capable module is installed. The option to send HTML e-mail is enabled.') : t('No commonly-known HTML capable module is installed. The option to send HTML e-mail is disabled.');
}