1 list.module list_field_formatter_settings_summary($field, $instance, $view_mode)

Implements hook_field_formatter_settings_summary().

File

core/modules/field/modules/list/list.module, line 655
Defines list field types that can be used with the Options module.

Code

function list_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = array();

  switch ($display['type']) {
    case 'boolean_yes_no':
      $formats = list_boolean_display_format_options($settings);
      $summary[] = t('Output format: %format', array('%format' => $formats[$settings['format']]));
      $summary[] = t('Reversed: @reversed', array('@reversed' => list_boolean_display_value_with_format($settings['reverse'], 'yes-no', array('reverse' => FALSE))));
      break;
  }

  return implode('<br/>', $summary);
}