Issue #705892 follow-up by bfroehle, ELC: Safer method of instantiating the content variable in node.tpl.php.
parent
75b8f880fc
commit
002cf94d32
|
@ -1455,7 +1455,7 @@ function template_preprocess_node(&$variables) {
|
|||
$variables = array_merge((array) $node, $variables);
|
||||
|
||||
// Helpful $content variable for templates.
|
||||
$variables['content'] = array();
|
||||
$variables += array('content' => array());
|
||||
foreach (element_children($variables['elements']) as $key) {
|
||||
$variables['content'][$key] = $variables['elements'][$key];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue