1 node.install node_update_1000()

Set 'node' as home page path if it implicitly was before.

Node module became optional. The default home page path was changed to 'user'. Since 'node' was the implicit default home page path previously and may not have been explicitly configured as such, this update ensures that the old implicit default is still the default.

See also

http://drupal.org/node/375397

Related topics

File

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

Code

function node_update_1000() {
  $front_page = config_get('system.core', 'site_frontpage');
  if (!isset($front_page)) {
    config_set('system.core', 'site_frontpage', 'node');
  }
}