You are here

function telephone_field_formatter_settings_summary in Telephone 7

Implements hook_field_formatter_settings_summary().

File

./telephone.module, line 130
Defines a simple telephone number field type.

Code

function telephone_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  if (!empty($settings['title'])) {
    $summary = t('Link using text: @title', array(
      '@title' => $settings['title'],
    ));
  }
  else {
    $summary = t('Link using provided telephone number.');
  }
  return $summary;
}