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.
After tracing the code i realized the the following code overwrites themekey configuration for any user that does not have access to admin theme on all pages. May i know why you're unsetting custom_theme?!
if (!user_access('access admin theme') || $admin_theme_disallow) {
unset($GLOBALS['custom_theme']);
return;
}
Comments
Comment #1
davyvdb CreditAttribution: davyvdb commented#508536: play nice with $custom_theme