function acquia_lift_confirm_revert_changes_submit in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift.admin.wizard.inc \acquia_lift_confirm_revert_changes_submit()
Submit callback for the "Revert changes" confirm form.
1 call to acquia_lift_confirm_revert_changes_submit()
- acquia_lift_targeting_form_submit in ./
acquia_lift.admin.inc - Submit callback for the targeting form.
File
- ./
acquia_lift.admin.inc, line 1407 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function acquia_lift_confirm_revert_changes_submit($form, &$form_state) {
if ($agent = personalize_agent_load($form_state['values']['agent'])) {
$agent->data['lift_targeting'] = array();
personalize_agent_save($agent);
}
}