function path_to_engine in Drupal 5
Return the path to the currently selected engine.
1 call to path_to_engine()
- _phptemplate_default in themes/
engines/ phptemplate/ phptemplate.engine - Default callback for PHPTemplate.
File
- includes/
theme.inc, line 229 - The theme system, which controls the output of Drupal.
Code
function path_to_engine() {
global $theme, $theme_engine;
if (!isset($theme)) {
init_theme();
}
$engines = list_theme_engines();
return dirname($engines[$theme_engine]->filename);
}