diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 9d823ca..5ea9d6e 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -2232,6 +2232,16 @@ function system_update_8036() { } /** + * Enable Views if the node listing is set as the front page. + */ +function system_update_8037() { + $front_page = config('system.site')->get('page.front'); + if (!isset($front_page) || $front_page == 'node') { + update_module_enable(array('views')); + } +} + +/** * @} End of "defgroup updates-7.x-to-8.x". * The next series of updates should start at 9000. */