$custom_theme

  1. drupal
    1. 6 developer/globals.php

Name of custom theme to override default theme.

See also

init_theme()

File

developer/globals.php, line 168
These are the global variables that Drupal uses.

Code

global $custom_theme

Comments

$custom_theme in Drupal 7

If you used to use $custom_theme to switch themes in Drupal 6 in hook_init, you should check out hook_custom_theme and the example from the Upgrade modules from 6.x to 7.x page for the equivalent feature in Drupal 7.

Login or register to post comments