function acquia_lift_personalize_campaign_wizard_goals_submit_element_add in Acquia Lift Connector 7.2
Submit handler for entering a URL to begin creation of an element goal.
1 string reference to 'acquia_lift_personalize_campaign_wizard_goals_submit_element_add'
- _acquia_lift_personalize_campaign_wizard_goal_element_form in ./
acquia_lift.admin.wizard.inc - Form to select a page for a new element goal.
File
- ./
acquia_lift.admin.wizard.inc, line 2304 - 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_submit_element_add($form, &$form_state) {
$agent_data = $form['#agent'];
// Redirect to the requested URL to create an option set.
$delta = _acquia_lift_personalize_campaign_wizard_next_element($form_state, 'new');
$_SESSION['visitor_actions_ui_edit_mode'] = 1;
$_SESSION['visitor_actions_ui_edit_mode_return'] = 'admin/structure/personalize/manage/' . $agent_data->machine_name . '/goals';
// Run the form submit handler in case any other variations were added or
// edited.
acquia_lift_personalize_campaign_wizard_submit($form, $form_state);
$element_page = $form_state['values']['goals']['new'][$delta]['details']['url'] ?: '<front>';
drupal_goto($element_page);
}