Commit 966c9cf8 authored by joachim's avatar joachim Committed by fago

Issue #2109825 by joachim: theme_entity_property() doesn't respect 'content' variable

parent 20120567
......@@ -80,9 +80,12 @@ function template_preprocess_entity_property(&$variables, $hook) {
);
// Populate the content with sensible defaults.
if (!isset($variables['content'])) {
if (!isset($element['#content'])) {
$variables['content'] = entity_property_default_render_value_by_type($element['#entity_wrapped']->{$element['#property_name']});
}
else {
$variables['content'] = $element['#content'];
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment