#1352792 by longwave: Let _views_find_module_templates handle render element pattern
authorDaniel Wehner
Sat, 26 Nov 2011 11:08:16 +0000 (12:08 +0100)
committerDaniel Wehner
Sat, 26 Nov 2011 11:08:16 +0000 (12:08 +0100)
views.module

index d644ec5..b964561 100644 (file)
@@ -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,
           );