You are here

function fontawesome_iconpicker_field_formatter_settings_summary in Font Awesome Iconpicker 7

Implements hook_field_formatter_settings_summary().

File

./fontawesome_iconpicker.module, line 230
Integrates fontawesome-iconpicker plugin with Drupal.

Code

function fontawesome_iconpicker_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = t('Size: @size', array(
    '@size' => $settings['size'],
  ));
  return $summary;
}