You are here

function acquia_lift_personalize_campaign_wizard_targeting_ajax in Acquia Lift Connector 7.2

Ajax callback for the add context and remove context buttons.

1 string reference to 'acquia_lift_personalize_campaign_wizard_targeting_ajax'
_acquia_lift_personalize_campaign_wizard_targeting_audience in ./acquia_lift.admin.wizard.inc
Helper function to generate an audience sub-form.

File

./acquia_lift.admin.wizard.inc, line 1691
acquia_lift.admin.wizard.inc Functions specific to the Acquia Lift alteration of the campaign creation wizard.

Code

function acquia_lift_personalize_campaign_wizard_targeting_ajax($form, &$form_state) {

  // Don't show any messages within the AJAX returned.
  drupal_get_messages();
  $type_key = _acquia_lift_personalize_campaign_wizard_next_element($form_state, 'audiences');
  $context_key = _acquia_lift_personalize_campaign_wizard_next_element($form_state, $type_key);
  return $form['targeting']['audiences'][$type_key][$context_key]['details'];
}