function lightning_api_update_8301 in Lightning API 8.3
Same name and namespace in other branches
- 8.4 lightning_api.install \lightning_api_update_8301()
Fix the "Content" view's "Operations" field.
Changes its 'Include destination' setting to FALSE.
See also
1 call to lightning_api_update_8301()
- lightning_api_install in ./
lightning_api.install - Implements hook_install().
File
- ./
lightning_api.install, line 112 - Install, update, and uninstall functions for the Lightning API module.
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();
}
}