function acquia_lift_personalize_campaign_wizard_review_submit in Acquia Lift Connector 7.2
Submit function for the review page.
File
- ./
acquia_lift.admin.wizard.inc, line 2447 - acquia_lift.admin.wizard.inc Functions specific to the Acquia Lift alteration of the campaign creation wizard.
Code
function acquia_lift_personalize_campaign_wizard_review_submit(&$form, &$form_state, &$agent_data, $agent_instance) {
// If the "Start" button was pressed then we sync everything to Lift and start
// the campaign.
if (isset($form_state['triggering_element']['#personalize_next_status'])) {
$next_status = $form_state['triggering_element']['#personalize_next_status'];
module_load_include('inc', 'acquia_lift', 'acquia_lift.admin');
if (!acquia_lift_target_set_status($agent_data, $next_status)) {
form_set_error(NULL, t('There was a problem implementing the personalization as defined.'));
}
$form_state['redirect'] = 'admin/structure/personalize/manage/' . $agent_data->machine_name . '/review';
}
}