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