function acquia_lift_confirm_revert_changes in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift.admin.wizard.inc \acquia_lift_confirm_revert_changes()
Confirm form for reverting the changes to targeting.
Parameters
$agent_name: The name of hte agent whose targeting changes are being reverted.
1 call to acquia_lift_confirm_revert_changes()
- acquia_lift_targeting_form in ./
acquia_lift.admin.inc - Form for assigning options or tests to audiences.
File
- ./
acquia_lift.admin.inc, line 1389 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function acquia_lift_confirm_revert_changes($form, &$form_state, $agent_name) {
$form['agent'] = array(
'#type' => 'value',
'#value' => $agent_name,
);
$form['revert_changes'] = array(
'#type' => 'value',
'#value' => TRUE,
);
return confirm_form($form, t('Are you sure you want to revert the targeting changes for the %agent campaign?', array(
'%agent' => $agent_name,
)), 'admin/structure/personalize/' . $agent_name, t('Reverting the targeting will discard all changes since the campaign was set to running.'), t('Revert changes'), t('Cancel'));
}