function crm_core_user_sync_form_crm_core_ui_admin_config_form_alter 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_form_crm_core_ui_admin_config_form_alter()
Implements hook_form_FORM_ID_alter().
File
- modules/
crm_core_user_sync/ crm_core_user_sync.module, line 452
Code
function crm_core_user_sync_form_crm_core_ui_admin_config_form_alter(&$form, &$form_state, $form_id) {
$form['contacts'] = array(
'#type' => 'fieldset',
'#title' => t('Contacts'),
'#weight' => 0,
);
$description = 'When checked, this will allow contact information to be loaded as part of the user entity. ' . 'It will create an array containing contact information associated with the current user. In certain situations,' . ' loading contact data as part of a user entity can create performance issues (for instance, when there are ' . 'hundreds of fields associated with each contact). Uncheck this box if it is creating problems with performance.';
$form['contacts']['crm_core_contact_load'] = array(
'#type' => 'checkbox',
'#title' => t('Load contact information as part of the user entity?'),
'#description' => t($description),
'#default_value' => variable_get('crm_core_contact_load', FALSE),
'#weight' => 0,
);
}