webmaster@1: filename) .'/template.php'; webmaster@1: if (file_exists($file)) { webmaster@1: include_once "./$file"; webmaster@1: } webmaster@1: } webmaster@1: webmaster@1: /** webmaster@1: * Implementation of hook_theme to tell Drupal what templates the engine webmaster@1: * and the current theme use. The $existing argument will contain hooks webmaster@1: * pre-defined by Drupal so that we can use that information if webmaster@1: * we need to. webmaster@1: */ webmaster@1: function phptemplate_theme($existing, $type, $theme, $path) { webmaster@1: $templates = drupal_find_theme_functions($existing, array('phptemplate', $theme)); webmaster@1: $templates += drupal_find_theme_templates($existing, '.tpl.php', $path); webmaster@1: return $templates; webmaster@1: } webmaster@1: