You are here

function atom_reference_field_formatter_settings_summary in Scald: Media Management made easy 7

Implements hook_field_formatter_settings_summary().

File

modules/fields/atom_reference/atom_reference.module, line 211
Defines a new field type, allowing to directly reference Scald Atoms from a node.

Code

function atom_reference_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $link = empty($settings['link']) ? t('No') : t('Yes');
  $summary = t('Link to content: @choice', array(
    '@choice' => $link,
  ));
  return $summary;
}