diff --git a/composer.json b/composer.json index 57015db..3dbdf15 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "dpc-sdp/tide_alert": "3.0.0", "dpc-sdp/tide_api": "3.0.4", "dpc-sdp/tide_authenticated_content": "3.0.3", - "dpc-sdp/tide_core": "3.1.9", + "dpc-sdp/tide_core": "3.1.10", "dpc-sdp/tide_demo_content": "3.0.6", "dpc-sdp/tide_event": "3.0.0", "dpc-sdp/tide_event_atdw": "3.0.0", @@ -19,7 +19,7 @@ "dpc-sdp/tide_page": "3.0.0", "dpc-sdp/tide_profile": "3.0.0", "dpc-sdp/tide_publication": "3.0.0", - "dpc-sdp/tide_search": "3.0.3", + "dpc-sdp/tide_search": "3.0.4", "dpc-sdp/tide_site": "3.0.4", "dpc-sdp/tide_test": "3.0.1", "dpc-sdp/tide_webform": "3.0.2" diff --git a/tide.install b/tide.install index ee48509..04f4eb6 100644 --- a/tide.install +++ b/tide.install @@ -49,4 +49,15 @@ function tide_install() { if (file_exists(DRUPAL_ROOT . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . 'contrib' . DIRECTORY_SEPARATOR . 'redis')) { \Drupal::service('module_installer')->install(['redis']); } + // These viewes are replaced by custom views provided by tide_site. + $view_ids = [ + 'content', + 'moderated_content', + ]; + foreach ($view_ids as $view_id) { + $view = \Drupal::entityTypeManager()->getStorage('view')->load($view_id); + if ($view) { + $view->setStatus(FALSE)->save(); + } + } }