You are here

function twitter_post_field_formatter_settings_summary in Twitter 7.6

Implements hook_field_formatter_settings_summary().

File

twitter_post/twitter_post.field.inc, line 227
Field configuration for twitter_post module.

Code

function twitter_post_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  if ($settings['type'] != 'none') {
    $summary = t('Default status: @status. Message: @message', array(
      '@status' => $settings['status'],
      '@message' => $settings['message'],
    ));
  }
  else {
    $summary = t('Twitter post field is disabled.');
  }
  return $summary;
}