You are here

function modal_page_update_40008 in Modal 4.0.x

Same name and namespace in other branches
  1. 4.1.x modal_page.install \modal_page_update_40008()

Adds a new settings item with default value.

File

./modal_page.install, line 537
Install, update and uninstall functions for the Modal Page.

Code

function modal_page_update_40008() {
  $config = \Drupal::configFactory()
    ->getEditable('modal_page.settings');
  $loadBootstrap = $config
    ->get('load_bootstrap_cdn');
  $config
    ->set('load_bootstrap', $loadBootstrap);
  $config
    ->clear('load_bootstrap_cdn');
  $config
    ->clear('no_modal_page_external_js');
  $config
    ->save();
}