You are here

function barcodes_field_formatter_settings_summary in Barcodes 7

Implements hook_field_formatter_settings_summary().

File

./barcodes.module, line 319
Contains barcodes.module.

Code

function barcodes_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  if ($display['type'] === 'barcode') {
    $summary = t('Type: @type', array(
      '@type' => isset($settings['type']) ? $settings['type'] : t('none'),
    ));
  }
  return $summary;
}