You are here

function crm_core_user_sync_entity_property_info_alter in CRM Core 8.2

Same name and namespace in other branches
  1. 7 modules/crm_core_user_sync/crm_core_user_sync.module \crm_core_user_sync_entity_property_info_alter()

Implements hook_entity_property_info_alter().

We need to extend Contact entity with related user for Rules integration.

File

modules/crm_core_user_sync/crm_core_user_sync.module, line 434

Code

function crm_core_user_sync_entity_property_info_alter(&$info) {
  $info['crm_core_contact']['properties']['crm_core_user_sync_uid'] = array(
    'label' => t('Linked Account'),
    'description' => t('Account related to Contact by crm_core_user_sync module.'),
    'type' => 'user',
    'getter callback' => 'crm_core_user_sync_contact_get_user_properties',
  );
}