This module provides a way to show empty fields that would otherwise be hidden.

It achieves this by appending new settings to existing display formatters. These settings allow you to display a value using either:

  • custom text, as defined by the field administrator
  • to show the results of a custom callback
  • to show the default empty value (if default is not empty itself!)

This last option may be useful in case the field is not required and the instance default value was added after content had been already created.

For example, you could have a list of checkboxes. If none are checked, normally the entire field would be removed from the display. However, with this module you could display something like "Status unknown", "Nothing selected" or "This user failed their IQ test" when the field was empty.

Note that this can be easily achieved in a custom preprocess callback or hook_field_attach_view_alter() if you know some PHP coding. However, our client wanted multiple fields to display something if empty, and they kept changing this text, so we made it configurable!

7.x-2.x
The 2.x branch of this module defines a plugin system that allows easy creation of custom reactions to empty fields.

Dependencies

Field formatter settings

Supporting organizations: 

Project information

Releases