From 61912735accd5352aefaf1f704c12b1600538131 Mon Sep 17 00:00:00 2001 From: Capi Etheriel Date: Tue, 31 Jan 2012 21:18:47 -0200 Subject: [PATCH] Issue #1423556 by barraponto: properly declare hook_theme signature --- template.php | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/template.php b/template.php index ed1f3fa..e1bcb4a 100644 --- a/template.php +++ b/template.php @@ -55,29 +55,29 @@ function tao_css_alter(&$css) { /** * Implementation of hook_theme(). */ -function tao_theme() { +function tao_theme($existing, $type, $theme, $path) { $items = array(); // Consolidate a variety of theme functions under a single template type. $items['block'] = array( 'arguments' => array('block' => NULL), 'template' => 'object', - 'path' => drupal_get_path('theme', 'tao') .'/templates', + 'path' => $path . '/templates', ); $items['comment'] = array( 'arguments' => array('comment' => NULL, 'node' => NULL, 'links' => array()), 'template' => 'object', - 'path' => drupal_get_path('theme', 'tao') .'/templates', + 'path' => $path . '/templates', ); $items['node'] = array( 'arguments' => array('node' => NULL, 'teaser' => FALSE, 'page' => FALSE), 'template' => 'node', - 'path' => drupal_get_path('theme', 'tao') .'/templates', + 'path' => $path . '/templates', ); $items['fieldset'] = array( 'arguments' => array('element' => array()), 'template' => 'fieldset', - 'path' => drupal_get_path('theme', 'tao') .'/templates', + 'path' => $path . '/templates', ); // Split out pager list into separate theme function. -- 1.7.5.4