You are here

function _acquia_lift_admin_build_advanced_confirmation_form in Acquia Lift Connector 7.3

1 call to _acquia_lift_admin_build_advanced_confirmation_form()
acquia_lift_admin_form in ./acquia_lift.admin.inc
@file acquia_lift.admin.inc Provides functions needed for the admin UI.

File

./acquia_lift.admin.inc, line 258
acquia_lift.admin.inc Provides functions needed for the admin UI.

Code

function _acquia_lift_admin_build_advanced_confirmation_form(&$form, &$form_state) {
  $form['acquia_lift_bootstrap_mode'] = [
    '#type' => 'radios',
    '#title' => t('Bootstrap mode'),
    '#description' => t('"Auto" means Lift scripts will automatically bootstrap and act as quickly as possible. "Manual" means Lift scripts will load but withhold itself from collecting data, delivering content, and allowing admins to login; this option is useful when you want to do things on your site (e.g. check a cookie, set field value) before you want Lift to start bootstrapping; to resume Lift\'s bootstrapping process, call AcquiaLiftPublicApi.personalize().'),
    '#default_value' => variable_get('acquia_lift_bootstrap_mode', 'auto'),
    '#options' => [
      'auto' => t('Auto'),
      'manual' => t('Manual'),
    ],
  ];
  $form['acquia_lift_content_replacement_mode'] = [
    '#type' => 'radios',
    '#title' => t('Content replacement mode'),
    '#description' => t('The default, site-wide setting for <a href="@docs-link" target="_blank">content replacement mode</a>.', array(
      '@docs-link' => 'https://docs.acquia.com/lift/drupal/3/config/trusted',
    )),
    '#default_value' => variable_get('acquia_lift_content_replacement_mode', 'untrusted'),
    '#options' => [
      'trusted' => t('Trusted'),
      'untrusted' => t('Untrusted'),
      'customized' => t('Customized'),
    ],
  ];
  $form['acquia_lift_content_origin'] = array(
    '#type' => 'textfield',
    '#title' => t('Content Hub Origin Site UUID'),
    '#description' => t('Show content in Experience Builder content list from only one origin site, specified by its Content Hub Site UUID. Leave empty to show content from all sites.'),
    '#default_value' => variable_get('acquia_lift_content_origin'),
  );
}