You are here

function redhen_fields_field_info in RedHen CRM 7

Implements hook_field_info().

File

modules/redhen_fields/redhen_fields.module, line 13
Defines email, phone and address field types for RedHen CRM.

Code

function redhen_fields_field_info() {
  return array(
    'redhen_email' => array(
      'label' => t('RedHen Email'),
      'description' => t("This field allows you to store multiple email values with labels "),
      'settings' => array(
        'labels' => array(),
      ),
      'default_widget' => 'redhen_email_widget',
      'default_formatter' => 'redhen_email_formatter',
      'default_token_formatter' => 'redhen_email_primary',
      // Integrate with the Entity Metadata module.
      'property_type' => 'redhen_email',
      'property_callbacks' => array(
        'redhen_fields_email_property_info_callback',
      ),
    ),
  );
}