| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @file 5 * Handles integration of PHP templates with the Drupal theme system. 6 */ 7 8 /** 9 * Implementation of hook_init(). 10 */ 11 function phptemplate_init($template) { 12 $file = dirname($template->filename) .'/template.php'; 13 if (file_exists($file)) { 14 include_once "./$file"; 15 } 16 } 17 18 /** 19 * Implementation of hook_theme(). 20 */ 21 function phptemplate_theme($existing, $type, $theme, $path) { 22 $templates = drupal_find_theme_functions($existing, array('phptemplate', $theme)); 23 $templates += drupal_find_theme_templates($existing, '.tpl.php', $path); 24 return $templates; 25 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |