1.20.x system.install system_update_1001()

Move from the Garland theme.

Related topics

File

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

Code

function system_update_1001() {
  $themes = array('theme_default', 'maintenance_theme', 'admin_theme');
  foreach ($themes as $theme) {
    if (update_variable_get($theme) == 'garland') {
      update_variable_set($theme, 'bartik');
    }
  }
}