path_to_theme

  1. drupal
    1. 4.7
    2. 5
    3. 6 theme.inc
    4. 7 theme.inc
Versions
4.7 – 7 path_to_theme()

Return the path to the currently selected theme.

▾ 3 functions call path_to_theme()

chameleon_page in themes/chameleon/chameleon.theme
_phptemplate_default in themes/engines/phptemplate/phptemplate.engine
Default callback for PHPTemplate.
_phptemplate_default_variables in themes/engines/phptemplate/phptemplate.engine
Adds additional helper variables to all templates.

Code

includes/theme.inc, line 205

<?php
function path_to_theme() {
  global $theme;

  $themes = list_themes();

  return dirname($themes[$theme]->filename);
}
?>