diff -r fcf75e232c5b -r 0ff3ba646492 web/drupal/themes/engines/phptemplate/phptemplate.engine --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/drupal/themes/engines/phptemplate/phptemplate.engine Fri Aug 21 16:26:26 2009 +0000 @@ -0,0 +1,27 @@ +filename) .'/template.php'; + if (file_exists($file)) { + include_once "./$file"; + } +} + +/** + * Implementation of hook_theme to tell Drupal what templates the engine + * and the current theme use. The $existing argument will contain hooks + * pre-defined by Drupal so that we can use that information if + * we need to. + */ +function phptemplate_theme($existing, $type, $theme, $path) { + $templates = drupal_find_theme_functions($existing, array('phptemplate', $theme)); + $templates += drupal_find_theme_templates($existing, '.tpl.php', $path); + return $templates; +} +