You are here

function icon_field_field_formatter_settings_summary in Icon API 7

Implements hook_field_formatter_settings_summary().

File

modules/icon_field/icon_field.module, line 110
icon_field.module Provides a field for attaching an icon to a fieldable entity.

Code

function icon_field_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  if ($display['type'] == 'icon_field_default') {
    if ($display['settings']['link_to_content']) {
      return t('Link icon to content');
    }
    else {
      return t('No link');
    }
  }
  return '';
}