1 comment.install comment_update_1005()

Move default comment view to comment module.

Related topics

File

core/modules/comment/comment.install, line 431
Install, update and uninstall functions for the Comment module.

Code

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