You are here

function sarnia_field_formatter_settings_summary in Sarnia 7

Implements hook_field_formatter_settings_summary().

The output of this hook is currently unused except to assert that this formatter has a settings form.

File

./sarnia.field_formatter.inc, line 121
Field formatter hook implementations.

Code

function sarnia_field_formatter_settings_summary($field, $instance, $view_mode) {
  if (isset($instance['display'][$view_mode]['settings']['solr_property'])) {
    $summary = t('Solr property: %property', array(
      '%property' => $instance['display'][$view_mode]['settings']['solr_property'],
    ));
  }
  else {
    $summary = t('No property selected.');
  }
  return $summary;
}