$theme

  1. drupal
    1. 6 developer/globals.php
    2. 7 developer/globals.php
    3. 8 developer/globals.php

Name of the active theme.

File

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

Code

global $theme

Comments

Isn't always set :(

If you find global $theme to be empty, you may want to try the following:

$theme = variable_get('theme_default', NULL);

Login or register to post comments