Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2011 at 14:16 UTC
Updated:
1 Jun 2015 at 19:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mattdanger commentedAgree that the current implementation of
hide()could be a little better. I'm experiencing a similar problem whereempty($content['field_name'])will return FALSE when the field is empty becausehide($content['field_name'])sets the previously empty render array to#printed => TRUE.I've attached a patch using a method suggested by @arne_hortell in this comment.