You are here

function thunder_update_8317 in Thunder 6.2.x

Remove thunder_article.settings.

File

./thunder.install, line 215
Install, update and uninstall functions for the thunder installation profile.

Code

function thunder_update_8317() {
  \Drupal::configFactory()
    ->getEditable('thunder_article.settings')
    ->delete();
  $view = View::load('scheduler_scheduled_content');
  if ($view) {
    $display =& $view
      ->getDisplay('overview');
    $display['display_options']['menu']['type'] = 'none';
    $view
      ->save();
    return t('The "Scheduled" menu entry was removed.');
  }
}