Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In my customer site ThemeKey is used to apply the administation theme (Seven) when user has the admin or editor role. I noticed that applying the admin theme with ThemeKey requires the Seven theme to be enabled. But this is bad for performance. The boot time increases measurably when the Seven theme (or any additional theme) is enabled. I'd rather not. When selecting the 'Administation theme' is it required to enable it? Technically this is not. I used hook_custom_theme() and it works with a disabled theme.
Comments
Comment #2
kari.kaariainen CreditAttribution: kari.kaariainen commentedThis is a big gotcha! A theme doesn't need to enabled to work as admin theme, but it really has to be enabled in order to make ThemeKey switch to it.