This repository has been archived on 2025-06-21. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
suitedesk/themes/engines/phptemplate/phptemplate.engine

25 lines
584 B
Text

<?php
/**
* @file
* Handles integration of PHP templates with the Drupal theme system.
*/
/**
* Implementation of hook_init().
*/
function phptemplate_init($template) {
$file = dirname($template->filename) .'/template.php';
if (file_exists($file)) {
include_once "./$file";
}
}
/**
* Implementation of hook_theme().
*/
function phptemplate_theme($existing, $type, $theme, $path) {
$templates = drupal_find_theme_functions($existing, array('phptemplate', $theme));
$templates += drupal_find_theme_templates($existing, '.tpl.php', $path);
return $templates;
}