diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-10-16 13:50:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-10-16 13:50:21 +0000 |
commit | 025c43c68fdae63bb88509369974b44be1999d6d (patch) | |
tree | 4691a1873dd173dc225b01c7a8a98486841d7ccd /includes | |
parent | b182fd8e23dbf72c4d72b29fee82b31987a673a3 (diff) | |
download | brdo-025c43c68fdae63bb88509369974b44be1999d6d.tar.gz brdo-025c43c68fdae63bb88509369974b44be1999d6d.tar.bz2 |
- Patch #316753 by dvessel: exanded PHP doc of path_to_theme().
Diffstat (limited to 'includes')
-rw-r--r-- | includes/theme.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/theme.inc b/includes/theme.inc index 61a0bbf65..5473cb937 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -703,7 +703,14 @@ function drupal_discover_template($paths, $suggestions, $extension = '.tpl.php') } /** - * Return the path to the currently selected theme. + * Return the path to the current themed element. + * + * It can point to the active theme or the module handling a themed implementation. + * For example, when invoked within the scope of a theming call it will depend + * on where the theming function is handled. If implemented from a module, it + * will point to the module. If implemented from the active theme, it will point + * to the active theme. When called outside the scope of a theming call, it will + * always point to the active theme. */ function path_to_theme() { global $theme_path; |