diff --git a/modules/storm/stormteam/stormteam.theme.inc b/modules/storm/stormteam/stormteam.theme.inc index 51c5af5..33b7f1e 100644 --- a/modules/storm/stormteam/stormteam.theme.inc +++ b/modules/storm/stormteam/stormteam.theme.inc @@ -70,12 +70,14 @@ function theme_stormteam_view($node, $teaser = FALSE, $page = FALSE) { ); } - $node->content['body_field'] = array( - '#prefix' => '
', - '#suffix' => '
', - '#value' => theme('storm_view_item', t($type->body_label), $node->content['body']['#value']), - '#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'body_field') : 0, - ); + if (strlen(trim(html_entity_decode(strip_tags($node->content['body']['#value']))))) { + $node->content['body_field'] = array( + '#prefix' => '
', + '#suffix' => '
', + '#value' => theme('storm_view_item', t($type->body_label), $node->content['body']['#value']), + '#weight' => module_exists('content') ? content_extra_field_weight($node->type, 'body_field') : 0, + ); + } unset($node->content['body']); return $node;