[support] help: hiding labels if content is empty in a view

Earnie Boyd earnie at users.sourceforge.net
Fri Aug 8 13:31:51 UTC 2008


Quoting Travis Nanek <travis at travisnanek.com>:

> I would like to be able to hide the labels in a view if the field is empty.
> This is to keep the list of information as compact as possible on the page
> and not show a label with no information following it.  I am using a grid
> layout of different users, and displaying some profile fields, yet those
> profile fields are not mandatory, thus I'm expecting some to be left blank.
>

http://api.drupal.org/api/function/hook_form_alter

With the above, create a module that modifies the form attributes.

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/



More information about the support mailing list