You are here

function lightning_api_update_8301 in Lightning API 8.4

Same name and namespace in other branches
  1. 8.3 lightning_api.install \lightning_api_update_8301()

Disables the content view's "include destination" switch for operations.

See also

lightning_api_view_presave()

1 call to lightning_api_update_8301()
lightning_api_install in ./lightning_api.install
Implements hook_install().

File

./lightning_api.install, line 111
Contains installation and update routines for Lightning API.

Code

function lightning_api_update_8301() {
  if (!Drupal::moduleHandler()
    ->moduleExists('views')) {
    return;
  }
  $view = View::load('content');
  if ($view) {
    lightning_api_view_presave($view
      ->enforceIsNew());
    $view
      ->enforceIsNew(FALSE)
      ->save();
  }
}