summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--views.module3
1 files changed, 2 insertions, 1 deletions
diff --git a/views.module b/views.module
index d644ec5..b964561 100644
--- a/views.module
+++ b/views.module
@@ -219,7 +219,8 @@ function _views_find_module_templates($cache, $path) {
$templates[strtr($file, '-', '_')] = array(
'template' => $file,
'path' => dirname($files[$match]->uri),
- 'variables' => $info['variables'],
+ 'variables' => isset($info['variables']) ? $info['variables'] : NULL,
+ 'render element' => isset($info['render element']) ? $info['render element'] : NULL,
'base hook' => $hook,
'includes' => isset($info['includes']) ? $info['includes'] : NULL,
);