function redhen_contact_field_extra_fields in RedHen CRM 7
Implements hook_field_extra_fields().
File
- modules/
redhen_contact/ redhen_contact.module, line 680 - Module file for RedHen contacts.
Code
function redhen_contact_field_extra_fields() {
$extra = array();
foreach (redhen_contact_get_types() as $type => $contact_type) {
$extra['redhen_contact'][$type] = array(
'form' => array(
'name' => array(
'label' => t('Contact name'),
'description' => t('Contact name'),
'weight' => 0,
),
),
'display' => array(
'name' => array(
'label' => t('Name'),
'description' => t('Contact name.'),
'weight' => 0,
),
'redhen_state' => array(
'label' => t('State'),
'description' => t('Contact state'),
'weight' => 0,
),
'user' => array(
'label' => t('User'),
'description' => t('Drupal user'),
'weight' => 0,
),
),
);
}
return $extra;
}