path_to_theme

Versions
4.6 – 7
path_to_theme()

Return the path to the currently selected theme.

Code

includes/theme.inc, line 200

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

  $themes = list_themes();

  return dirname($themes[$theme]->filename);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.