People keep trying to slip stuff referring to the global $custom_theme variable into Drupal even though that global variable no longer exists... probably it's related to the fact that we haven't gotten around to documenting the change from #553944: Define hook_menu_get_item_alter() as a reliable hook that runs before the page is doomed yet :)
In this case, I'm not even sure what the code was trying to use it for. Whenever drupal_theme_initialize() is called, the global $theme_key gets set to the actual theme that is going to be used for the current page, so as far as I can tell, that is all we would ever need to check here.
Comment | File | Size | Author |
---|---|---|---|
#2 | get-rid-of-custom-theme-global.patch | 717 bytes | David_Rothstein |
get-rid-of-custom-theme-global.patch | 717 bytes | David_Rothstein | |
Comments
Comment #2
David_Rothstein CreditAttribution: David_Rothstein commentedI'm pretty sure those test failures aren't for real. Resubmitting.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks David.