You are here

function scheduler_update_8101 in Scheduler 2.x

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

Set default value for new config option.

File

./scheduler.install, line 98
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"');
}