You are here

function redhen_engagement_entity_property_info_alter in RedHen CRM 7

Implements hook_entity_property_info_alter().

File

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

Code

function redhen_engagement_entity_property_info_alter(&$info) {

  // Add engagement_score computed property to contacts.
  $properties =& $info['redhen_contact']['properties'];
  $properties['engagement_score'] = array(
    'label' => t('Engagement Score'),
    'description' => t('The engagement score for this contact.'),
    'type' => 'integer',
    'schema field' => 'engagement_score',
  );
}