You are here

function wshybridfield_field_formatter_settings_summary in Web Service Data 7

Implements hook_field_formatter_settings_summary().

File

modules/wshybridfield/wshybridfield.module, line 115

Code

function wshybridfield_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  if (isset($settings['wsprocessor'])) {
    $summary .= t('Displayed with wsprocessor: %wsprocessor', array(
      '%wsprocessor' => $settings['wsprocessor'],
    ));
  }
  else {
    $summary .= t('No wsprocessor configured.');
  }
  return $summary;
}