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

Line #Times calledCode
1
<?php
2
// $Id: phptemplate.engine,v 1.71 2008/09/20 20:22:25 webchick Exp $
3
4
/**
5
 * @file
6
 * Handles integration of templates written in pure php with the Drupal
theme system.
7
 */
8
92158
function phptemplate_init($template) {
102158
  $file = dirname($template->filename) . '/template.php';
112158
  if (file_exists($file)) {
122157
    include_once DRUPAL_ROOT . '/' . $file;
132157
  }
142158
}
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
 */
222158
function phptemplate_theme($existing, $type, $theme, $path) {
23178
  $templates = drupal_find_theme_functions($existing, array('phptemplate',
$theme));
24178
  $templates += drupal_find_theme_templates($existing, '.tpl.php', $path);
25178
  return $templates;
260
}
27
282158