You are here

function phptemplate_init in Drupal 6

Same name and namespace in other branches
  1. 4 themes/engines/phptemplate/phptemplate.engine \phptemplate_init()
  2. 5 themes/engines/phptemplate/phptemplate.engine \phptemplate_init()
  3. 7 themes/engines/phptemplate/phptemplate.engine \phptemplate_init()

Implementation of hook_init().

File

themes/engines/phptemplate/phptemplate.engine, line 11
Handles integration of PHP templates with the Drupal theme system.

Code

function phptemplate_init($template) {
  $file = dirname($template->filename) . '/template.php';
  if (file_exists($file)) {
    include_once "./{$file}";
  }
}