mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-05-31 17:45:13 +00:00
Initial commit
This commit is contained in:
commit
c5e731d8ae
2773 changed files with 600767 additions and 0 deletions
drupal7/web/themes/engines/phptemplate
25
drupal7/web/themes/engines/phptemplate/phptemplate.engine
Normal file
25
drupal7/web/themes/engines/phptemplate/phptemplate.engine
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Handles integration of PHP templates with the Drupal theme system.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_init().
|
||||
*/
|
||||
function phptemplate_init($template) {
|
||||
$file = dirname($template->filename) . '/template.php';
|
||||
if (file_exists($file)) {
|
||||
include_once DRUPAL_ROOT . '/' . $file;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_theme().
|
||||
*/
|
||||
function phptemplate_theme($existing, $type, $theme, $path) {
|
||||
$templates = drupal_find_theme_functions($existing, array($theme));
|
||||
$templates += drupal_find_theme_templates($existing, '.tpl.php', $path);
|
||||
return $templates;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue