function acquia_lift_personalize_campaign_wizard_submit_editable in Acquia Lift Connector 7.2
Submit handler for changing campaign status to an editable campaign.
File
- ./
acquia_lift.admin.wizard.inc, line 2054 - acquia_lift.admin.wizard.inc Functions specific to the Acquia Lift alteration of the campaign creation wizard.
Code
function acquia_lift_personalize_campaign_wizard_submit_editable(&$form, &$form_state) {
// Run the base submit form handling.
$agent_data = personalize_campaign_wizard_submit_base($form, $form_state);
$next_status = $form_state['triggering_element']['#personalize_next_status'];
if (personalize_agent_set_status($agent_data->machine_name, $next_status)) {
drupal_set_message(t("The %campaign_name personalization is now editable.", array(
'%campaign_name' => $agent_data->label,
)));
}
}