You are here

function invisimail_field_formatter_settings_summary in Invisimail 7

Implements callback_field_formatter_settings_summary().

File

./invisimail.module, line 441
This module provides a filter that will search content for email addresses and replace them with their ascii equivalents before display. This is not a complete protection from spam harvesters, but it is some help.

Code

function invisimail_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $summary = '';
  if ($display['module'] == 'invisimail') {
    $encoder = invisimail_get_encoder($settings['encoder']);
    $summary = t('Email addresses will be encoded using the %encoder encoder.', array(
      '%encoder' => $encoder['label'],
    ));
  }
  return $summary;
}