function phptemplate_init in Drupal 5
Same name and namespace in other branches
- 4 themes/engines/phptemplate/phptemplate.engine \phptemplate_init()
- 6 themes/engines/phptemplate/phptemplate.engine \phptemplate_init()
- 7 themes/engines/phptemplate/phptemplate.engine \phptemplate_init()
@file Handles integration of templates written in pure php with the Drupal theme system.
File
- themes/
engines/ phptemplate/ phptemplate.engine, line 9 - Handles integration of templates written in pure php with the Drupal theme system.
Code
function phptemplate_init($template) {
$file = dirname($template->filename) . '/template.php';
if (file_exists($file)) {
include_once "./{$file}";
}
}