function crm_core_user_sync_contact_get_user_properties in CRM Core 8.2
Same name and namespace in other branches
- 7 modules/crm_core_user_sync/crm_core_user_sync.module \crm_core_user_sync_contact_get_user_properties()
1 string reference to 'crm_core_user_sync_contact_get_user_properties'
- crm_core_user_sync_entity_property_info_alter in modules/
crm_core_user_sync/ crm_core_user_sync.module - Implements hook_entity_property_info_alter().
File
- modules/
crm_core_user_sync/ crm_core_user_sync.module, line 443
Code
function crm_core_user_sync_contact_get_user_properties($entity, array $options, $name, $entity_type) {
if ($account = _crm_core_user_sync_get_related_entity('crm_core_contact', $entity->contact_id, 'crm_core_user_sync')) {
return $account->uid;
}
}