I'm trying to hide a field and the field label if the value of the field is '0' using the field--field_start_time.tpl.php override method. My template file logic is as follows.
<?php if ($element['#object']->field_start_time != '0')): ?>
<div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>:
</div>
<div class="field-item <?php print $delta % 2 ? 'odd' : 'even'; ?>"<?php print
$item_attributes[$delta]; ?>><?php print render($item); ?></div>
<?php endif; ?>
This is causing chaos with my node render and is obviously wrong. Any help would be GREATLY appreciated. Thanks.