You are here

function simplenews_update_830002 in Simplenews 3.x

Initialize plain-text alternative setting.

File

./simplenews.install, line 281
Install, update and uninstall functions for the simplenews module.

Code

function simplenews_update_830002() {
  $config = \Drupal::configFactory()
    ->getEditable('simplenews.settings');
  $config
    ->set('mail.textalt', TRUE);
  $config
    ->save();
}