Code coverage for /20080809/themes/engines/phptemplate/phptemplate.engine

Line #Times calledCode
1
<?php
2
// $Id: phptemplate.engine,v 1.70 2008/04/14 17:48:45 dries Exp $
3
4
/**
5
 * @file
6
 * Handles integration of templates written in pure php with the Drupal
theme system.
7
 */
8
92027
function phptemplate_init($template) {
102027
  $file = dirname($template->filename) . '/template.php';
112027
  if (file_exists($file)) {
122027
    include_once "./$file";
132027
  }
142027
}
15
16
/**
17
 * Implementation of hook_theme to tell Drupal what templates the engine
18
 * and the current theme use. The $existing argument will contain hooks
19
 * pre-defined by Drupal so that we can use that information if
20
 * we need to.
21
 */
222027
function phptemplate_theme($existing, $type, $theme, $path) {
2391
  $templates = drupal_find_theme_functions($existing, array('phptemplate',
$theme));
2491
  $templates += drupal_find_theme_templates($existing, '.tpl.php', $path);
2591
  return $templates;
260
}
27
282027