1 system.install system_update_1002()

Set Bartik as default theme if it implicitly was the default before.

The default theme for Backdrop core was changed from Bartik to Stark. Installation profiles (including Standard and Minimal) were changed to explicitly configure Bartik as default theme. Since Bartik was the default theme by default and may not have been explicitly configured as such previously, this update ensures that the implicit Bartik default is still the default.

See also

http://drupal.org/node/1181776

Related topics

File

core/modules/system/system.install, line 1689
Install, update and uninstall functions for the system module.

Code

function system_update_1002() {
  $theme = update_variable_get('theme_default');
  if (!isset($theme)) {
    update_variable_set('theme_default', 'bartik');
  }
}