function crm_core_user_sync_init 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_init()
Implements hook_init().
File
- modules/
crm_core_user_sync/ crm_core_user_sync.module, line 474
Code
function crm_core_user_sync_init() {
if (variable_get('crm_core_contact_load', FALSE)) {
global $user;
$user->crm_core['contact'] = crm_core_user_sync_get_contact_from_uid($user->uid);
}
}