You are here

function acquia_lift_personalize_campaign_wizard_targeting_remove in Acquia Lift Connector 7.2

Submit handler for the "Remove Context" button.

1 string reference to 'acquia_lift_personalize_campaign_wizard_targeting_remove'
_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 1679
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_remove($form, &$form_state) {
  $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);
  $delta = _acquia_lift_personalize_campaign_wizard_next_element($form_state, 'contexts');
  $form_state['to_remove_audience'][$type_key][$context_key] = $delta;
  $form_state['rebuild'] = TRUE;
}