function acquia_lift_admin_form in Acquia Lift Connector 7.3
Same name and namespace in other branches
- 7 acquia_lift.admin.inc \acquia_lift_admin_form()
- 7.2 acquia_lift.admin.inc \acquia_lift_admin_form()
@file acquia_lift.admin.inc Provides functions needed for the admin UI.
1 string reference to 'acquia_lift_admin_form'
- acquia_lift_menu in ./
acquia_lift.module - Implements hook_menu().
File
- ./
acquia_lift.admin.inc, line 9 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function acquia_lift_admin_form($form, &$form_state) {
$is_configured = acquia_lift_is_configured();
$form['intro'] = array(
'#markup' => t('You can find more info in the <a href="@docs-link" target="_blank">Documentation</a>.', array(
'@docs-link' => 'https://docs.acquia.com/lift',
)),
);
$form['credentials'] = array(
'#type' => 'fieldset',
'#title' => t('Acquia Lift credential'),
'#collapsible' => $is_configured,
'#collapsed' => $is_configured,
'#tree' => FALSE,
);
_acquia_lift_admin_build_credential_form($form['credentials'], $form_state);
$form['data_collection'] = array(
'#type' => 'vertical_tabs',
'#title' => t('Data collection settings'),
);
$form['identity'] = array(
'#type' => 'fieldset',
'#title' => t('Identity'),
'#group' => 'data_collection',
'#collapsible' => TRUE,
'#tree' => FALSE,
'#weight' => 10,
);
_acquia_lift_admin_build_identity_form($form['identity'], $form_state);
$form['acquia_lift_field_mappings'] = array(
'#type' => 'fieldset',
'#title' => t('Field mappings'),
'#description' => t('Create !taxonomy_link and map to "content section", "content keywords", and "persona" fields.', array(
'!taxonomy_link' => l(t('Taxonomy vocabularies'), 'admin/structure/taxonomy'),
)),
'#group' => 'data_collection',
'#collapsible' => TRUE,
'#tree' => TRUE,
'#weight' => 20,
);
_acquia_lift_admin_build_field_mappings_form($form['acquia_lift_field_mappings'], $form_state);
$form['acquia_lift_udf_mappings'] = array(
'#tree' => TRUE,
);
$form['acquia_lift_udf_mappings']['person'] = array(
'#type' => 'fieldset',
'#title' => t('User person mappings'),
'#description' => t('Map taxonomy terms to Visitor Profile person fields in Acquia Lift. Select a Taxonomy Reference Field that, if present, will map the value of the specified field to the Acquia Lift Profile for that specific visitor. No options available? Create !taxonomy_vocabulary_link and map the corresponding value.', array(
'!taxonomy_vocabulary_link' => l(t('Taxonomy vocabularies'), 'admin/structure/taxonomy'),
)),
'#group' => 'data_collection',
'#collapsible' => TRUE,
'#weight' => 30,
);
_acquia_lift_admin_build_udf_mappings_form($form['acquia_lift_udf_mappings']['person'], $form_state, 'person');
$form['acquia_lift_udf_mappings']['touch'] = array(
'#type' => 'fieldset',
'#title' => t('User touch mappings'),
'#description' => t('Map taxonomy terms to Visitor Profile touch fields in Acquia Lift. Select a Taxonomy Reference Field that, if present, will map the value of the specified field to the Acquia Lift Profile for that specific visitor. No options available? Create !taxonomy_vocabulary_link and map the corresponding value.', array(
'!taxonomy_vocabulary_link' => l(t('Taxonomy vocabularies'), 'admin/structure/taxonomy'),
)),
'#group' => 'data_collection',
'#collapsible' => TRUE,
'#weight' => 40,
);
_acquia_lift_admin_build_udf_mappings_form($form['acquia_lift_udf_mappings']['touch'], $form_state, 'touch');
$form['acquia_lift_udf_mappings']['event'] = array(
'#type' => 'fieldset',
'#title' => t('User event mappings'),
'#description' => t('Map taxonomy terms to Visitor Profile event fields in Acquia Lift. Select a Taxonomy Reference Field that, if present, will map the value of the specified field to the Acquia Lift Profile for that specific visitor. No options available? Create !taxonomy_vocabulary_link and map the corresponding value.', array(
'!taxonomy_vocabulary_link' => l(t('Taxonomy vocabularies'), 'admin/structure/taxonomy'),
)),
'#group' => 'data_collection',
'#collapsible' => TRUE,
'#weight' => 50,
);
_acquia_lift_admin_build_udf_mappings_form($form['acquia_lift_udf_mappings']['event'], $form_state, 'event');
$form['visibility'] = array(
'#type' => 'fieldset',
'#description' => t('Lift will skip data collection on those URLs and their aliases.'),
'#title' => t('Visibility'),
'#group' => 'data_collection',
'#collapsible' => TRUE,
'#tree' => FALSE,
'#weight' => 60,
);
_acquia_lift_admin_build_visibility_form($form['visibility'], $form_state);
$form['advanced'] = array(
'#type' => 'fieldset',
'#title' => t('Advanced configuration'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#tree' => FALSE,
'#weight' => 70,
);
_acquia_lift_admin_build_advanced_confirmation_form($form['advanced'], $form_state);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
'#weight' => 80,
);
return $form;
}