You are here

function empty_fields_field_formatter_info_alter in Empty fields 7

Same name and namespace in other branches
  1. 7.2 empty_fields.module \empty_fields_field_formatter_info_alter()

Implements hook_field_formatter_info_alter().

File

./empty_fields.module, line 10
Contains the implementation for the empty_fields module.

Code

function empty_fields_field_formatter_info_alter(&$info) {
  foreach ($info as $formatter_key => &$formatter) {

    // Some formatters do not have any settings.
    if (!isset($formatter['settings'])) {
      $formatter['settings'] = array();
    }
    $formatter['settings'] += array(
      'display_empty' => '',
      'custom_text' => '',
      'empty_callback' => '',
    );
  }
}