function crm_core_user_sync_entity_extra_field_info in CRM Core 8.3
Same name and namespace in other branches
- 8 modules/crm_core_user_sync/crm_core_user_sync.module \crm_core_user_sync_entity_extra_field_info()
Implements hook_entity_extra_field_info().
File
- modules/
crm_core_user_sync/ crm_core_user_sync.module, line 70 - CRM Core User Synchronization module.
Code
function crm_core_user_sync_entity_extra_field_info() {
$contact_show = \Drupal::config('crm_core_user_sync.settings')
->get('contact_show');
if ($contact_show) {
$fields['user']['user']['display']['contact_information'] = [
'label' => t('Contact information'),
'description' => t('Display related contact information'),
'weight' => 0,
];
return $fields;
}
}