function htmlmail_update_8302 in HTML Mail 8.3
Renames the 'use_mime_mail' configuration variable to 'use_mail_mime'.
See also
https://www.drupal.org/project/htmlmail/issues/3169313
File
- ./
htmlmail.install, line 86 - Install, update, and uninstall functions for the HTML Mail module.
Code
function htmlmail_update_8302() {
$config = \Drupal::configFactory()
->getEditable('htmlmail.settings');
// Copy old configuration to new configuration.
$config
->set('use_mail_mime', $config
->get('use_mime_mail'));
// Remove old configuration.
$config
->clear('use_mime_mail');
// Save modified configuration.
$config
->save('TRUE');
}