path_to_theme
- Versions
- 4.6 – 7
path_to_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.
Code
includes/theme.inc, line 733
<?php
function path_to_theme() {
global $theme_path;
if (!isset($theme_path)) {
init_theme();
}
return $theme_path;
}
?>Login or register to post comments 