You are here

function email_field_formatter_info in Email Field 6

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. 7 email.module \email_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./email.module, line 92

Code

function email_field_formatter_info() {
  $formats = array(
    'default' => array(
      'label' => t('Default email link'),
      'field types' => array(
        'email',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'contact' => array(
      'label' => t('Email contact form'),
      'field types' => array(
        'email',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'plain' => array(
      'label' => t('Email plain text'),
      'field types' => array(
        'email',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );
  if (module_exists('spamspan')) {
    $formats += array(
      'spamspan' => array(
        'label' => t('Email SpamSpan'),
        'field types' => array(
          'email',
        ),
        'multiple values' => CONTENT_HANDLE_CORE,
      ),
    );
  }
  return $formats;
}