You are here

function acquia_lift_personalize_campaign_wizard_targeting_add in Acquia Lift Connector 7.2

Submit handler for the "Add Context" button.

1 string reference to 'acquia_lift_personalize_campaign_wizard_targeting_add'
_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 1667
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_add($form, &$form_state) {

  // New or existing indicator:
  $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);
  $form_state['num_contexts_audience'][$type_key][$context_key]++;
  $form_state['rebuild'] = TRUE;
}