You are here

function acquia_lift_personalize_campaign_wizard_goals_ajax_change in Acquia Lift Connector 7.2

Ajax submit handler to change the type of goal being created.

1 string reference to 'acquia_lift_personalize_campaign_wizard_goals_ajax_change'
acquia_lift_personalize_campaign_wizard_goals_alter in ./acquia_lift.admin.wizard.inc
Alter the goals form.

File

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

Code

function acquia_lift_personalize_campaign_wizard_goals_ajax_change($form, &$form_state) {

  // Get the delta for the new goal.
  $delta = _acquia_lift_personalize_campaign_wizard_next_element($form_state, 'new');
  $form_state['new_goals'][$delta] = '';
  $form_state['expanded_goal'] = $delta;
  $form_state['rebuild'] = TRUE;
}