diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-12-30 20:59:11 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-12-30 20:59:11 +0000 |
commit | 7d706a562d48e89afb1cb44390cf9b9f848e8fe6 (patch) | |
tree | b3e5d28e1e685750841603978c55280dfc3bcae7 /includes | |
parent | 3944fe38ecc71b60ca7a172358a9851c206a211f (diff) | |
download | brdo-7d706a562d48e89afb1cb44390cf9b9f848e8fe6.tar.gz brdo-7d706a562d48e89afb1cb44390cf9b9f848e8fe6.tar.bz2 |
#105726 by moshe weitzman. Remove necessity to hard-code theme engine directories since they can change.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 05626586a..a0a1e1654 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -215,6 +215,21 @@ function path_to_theme() { } /** + * Return the path to the currently selected engine. + */ +function path_to_engine() { + global $theme, $theme_engine; + + if (!isset($theme)) { + init_theme(); + } + + $engines = list_theme_engines(); + + return dirname($engines[$theme_engine]->filename); +} + +/** * Retrieve an associative array containing the settings for a theme. * * The final settings are arrived at by merging the default settings, |