开发者

Replace default Drupal Garland theme during installation

开发者 https://www.devze.com 2023-02-01 04:08 出处:网络
I\'m writing an installation profile and want to switch default system theme (Garland) to my own theme. The theme should replace Garland on the first step - when I choose installation profile. On this

I'm writing an installation profile and want to switch default system theme (Garland) to my own theme. The theme should replace Garland on the first step - when I choose installation profile. On this stage Drupal is not bootstrapped, so I can not set appropriate DB variables.

开发者_如何学Go

Any ideas how to do that?


Short answer, you can't. It's fairly hard-coded in _drupal_maintenance_theme():

// Install and update pages are treated differently to prevent theming overrides.
if (defined('MAINTENANCE_MODE') && (MAINTENANCE_MODE == 'install' || MAINTENANCE_MODE == 'update')) {
  $theme = 'minnelli';
}
0

精彩评论

暂无评论...
验证码 换一张
取 消