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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

David_Rothstein’s picture

Status: Needs work » Needs review
FileSize
717 bytes

I'm pretty sure those test failures aren't for real. Resubmitting.

Dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks David.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.