function crm_core_user_sync_entity_property_info_alter in CRM Core 7
Same name and namespace in other branches
- 8.2 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 466
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',
);
}