You are here

function redhen_engagement_field_extra_fields_alter in RedHen CRM 7

Implements hook_field_extra_fields_alter().

Add engagement score to a contact's display settings.

File

modules/redhen_engagement/redhen_engagement.module, line 413
RedhenEngagement hook implementations and API

Code

function redhen_engagement_field_extra_fields_alter(&$info) {
  foreach (redhen_contact_get_types() as $type => $contact_type) {
    $info['redhen_contact'][$type]['display']['engagement_score'] = array(
      'label' => t('Engagement Score'),
      'description' => t('The engagement score for this contact.'),
      'weight' => 0,
    );
  }
}