You are here

function path_to_theme in Drupal 4

Same name and namespace in other branches
  1. 5 includes/theme.inc \path_to_theme()
  2. 6 includes/theme.inc \path_to_theme()
  3. 7 includes/theme.inc \path_to_theme()

Return the path to the currently selected theme.

3 calls to 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.

File

includes/theme.inc, line 204
The theme system, which controls the output of Drupal.

Code

function path_to_theme() {
  global $theme;
  $themes = list_themes();
  return dirname($themes[$theme]->filename);
}