You are here

function email_contact_field_formatter_info in Email Contact 7

Implements hook_field_formatter_info().

File

./email_contact.module, line 14
File name: email_contact.module.

Code

function email_contact_field_formatter_info() {
  $formats = array(
    'email_contact_link' => array(
      'label' => t('Email contact form link'),
      'description' => t('Display a link to a contact form.'),
      'field types' => array(
        'email',
      ),
      'settings' => array(
        'redirection_to' => 'front',
        'custom_path' => '',
        'link_text' => 'Contact person by email',
        'default_message' => '[current-user:name] sent a message using the contact form at [current-page:url].',
      ),
    ),
    'email_contact_inline' => array(
      'label' => t('Email contact form inline'),
      'description' => t('Display a contact form.'),
      'field types' => array(
        'email',
      ),
      'settings' => array(
        'redirection_to' => 'front',
        'custom_path' => '',
        'default_message' => '[current-user:name] sent a message using the contact form at [current-page:url].',
      ),
    ),
  );
  return $formats;
}