summaryrefslogtreecommitdiff
path: root/themes/engines/phptemplate
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-05-06 05:47:52 +0000
committerDries Buytaert <dries@buytaert.net>2007-05-06 05:47:52 +0000
commite66371cac17e35d2cb0c9bf48f792193b79f3a7c (patch)
tree7a80591383246fb439f9c74960c927071a45b9f8 /themes/engines/phptemplate
parent644657c56b6e04fb41e9b424668c61e0d1d6c1d4 (diff)
downloadbrdo-e66371cac17e35d2cb0c9bf48f792193b79f3a7c.tar.gz
brdo-e66371cac17e35d2cb0c9bf48f792193b79f3a7c.tar.bz2
- Patch #137211 by merlinofchaos: move theme information to .info files and improved theme inheritance.
Diffstat (limited to 'themes/engines/phptemplate')
-rw-r--r--themes/engines/phptemplate/phptemplate.engine9
1 files changed, 2 insertions, 7 deletions
diff --git a/themes/engines/phptemplate/phptemplate.engine b/themes/engines/phptemplate/phptemplate.engine
index 86f1a002f..4e9c065af 100644
--- a/themes/engines/phptemplate/phptemplate.engine
+++ b/themes/engines/phptemplate/phptemplate.engine
@@ -19,11 +19,11 @@ function phptemplate_init($template) {
* pre-defined by Drupal so that we can use that information if
* we need to.
*/
-function phptemplate_theme($existing) {
+function phptemplate_theme($existing, $type, $theme, $path) {
$templates = array();
// Check for template overrides.
- $files = drupal_system_listing('\.tpl\.php$', path_to_theme(), 'name', 0);
+ $files = drupal_system_listing('\.tpl\.php$', $path, 'name', 0);
foreach ($files as $template => $file) {
// chop off the .tpl
@@ -37,7 +37,6 @@ function phptemplate_theme($existing) {
}
// Check for function overrides.
- global $theme;
foreach ($existing as $hook => $info) {
if (function_exists($theme .'_'. $hook)) {
$templates[$hook] = array(
@@ -54,10 +53,6 @@ function phptemplate_theme($existing) {
return $templates;
}
-function phptemplate_templates($directory = 'themes') {
- return drupal_system_listing('^page\.tpl\.php$', $directory, 'filename');
-}
-
/**
* Adds additional helper variables to all templates.
*