function acquia_lift_confirm_revert_changes in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift.admin.inc \acquia_lift_confirm_revert_changes()
Confirm form for reverting the changes to targeting.
Parameters
stdClass $agent: The agent data whose targeting changes are being reverted.
1 string reference to 'acquia_lift_confirm_revert_changes'
- acquia_lift_menu in ./
acquia_lift.module - Implements hook_menu().
File
- ./
acquia_lift.admin.wizard.inc, line 3477 - acquia_lift.admin.wizard.inc Functions specific to the Acquia Lift alteration of the campaign creation wizard.
Code
function acquia_lift_confirm_revert_changes($form, &$form_state, $agent) {
$form['agent'] = array(
'#type' => 'value',
'#value' => $agent->machine_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 personalization?', array(
'%agent' => $agent->label,
)), 'admin/structure/personalize/' . $agent->machine_name . '/targeting', t('Reverting the targeting will discard all changes since the personalization was set to running.'), t('Revert changes'), t('Cancel'));
}