You are here

function email_field_formatter_info in Email Field 7

Same name and namespace in other branches
  1. 5 email.module \email_field_formatter_info()
  2. 6.2 email.module \email_field_formatter_info()
  3. 6 email.module \email_field_formatter_info()

Implements hook_field_formatter_info().

File

./email.module, line 72
Module file for the email module, which creates a email address field.

Code

function email_field_formatter_info() {
  $formats = array(
    'email_default' => array(
      'label' => t('Default email link'),
      'description' => t('Display the email address as a mailto link.'),
      'field types' => array(
        'email',
      ),
    ),
    'email_contact' => array(
      'label' => t('Email contact form'),
      'description' => t('Display a contact form.'),
      'field types' => array(
        'email',
      ),
    ),
    'email_plain' => array(
      'label' => t('Email plain text'),
      'description' => t('Display the email address as plain text.'),
      'field types' => array(
        'email',
      ),
    ),
  );
  if (module_exists('spamspan')) {
    $formats += array(
      'email_spamspan' => array(
        'label' => t('Email SpamSpan'),
        'field types' => array(
          'email',
        ),
      ),
    );
  }
  return $formats;
}