You are here

function crm_core_user_sync_contact_get_user_properties in CRM Core 7

Same name and namespace in other branches
  1. 8.2 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 475

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;
  }
}