1 node.install node_update_1020()

Move default promoted view to node module.

Related topics

File

core/modules/node/node.install, line 1981
Install, update and uninstall functions for the node module.

Code

function node_update_1020() {
  // If the views config has not been deleted, update it's module.
  $config = config('views.view.promoted');
  if (!$config->isNew()) {
    $config->set('module', 'node');
    $config->save();
  }
}