You are here

function tweetbutton_field_formatter_settings_summary in Tweet Button 7.2

Implements hook_field_formatter_settings_summary().

File

./tweetbutton.module, line 185

Code

function tweetbutton_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $options = array(
    'medium' => t('Medium'),
    'large' => t('Large'),
  );
  $title = $options[$settings['size']];
  return t('Size: !title', array(
    '!title' => $title,
  ));
}