Same name and namespace in other branches
- 4.7.x includes/theme.inc \path_to_theme()
- 5.x includes/theme.inc \path_to_theme()
- 6.x includes/theme.inc \path_to_theme()
- 7.x includes/theme.inc \path_to_theme()
Return the path to the currently selected theme.
File
- includes/
theme.inc, line 200 - The theme system, which controls the output of Drupal.
Code
function path_to_theme() {
global $theme;
$themes = list_themes();
return dirname($themes[$theme]->filename);
}