You are here

function scheduler_update_8101 in Scheduler 8

Same name and namespace in other branches
  1. 2.x scheduler.install \scheduler_update_8101()

Set default value for new config option.

File

./scheduler.install, line 106
Installation file for Scheduler module.

Code

function scheduler_update_8101() {

  // See https://www.drupal.org/project/scheduler/issues/3145169
  $config = \Drupal::configFactory()
    ->getEditable('scheduler.settings');
  $config
    ->set('default_show_message_after_update', TRUE)
    ->save();
  return t('Default set on for new option "Show a message after updating content"');
}