function acquia_lift_retire_test in Acquia Lift Connector 7.2
Retires a nested test, preserving information about what it had been used for.
Parameters
$test:
$parent_name:
$parent_label:
$audience_name:
$audience_label:
2 calls to acquia_lift_retire_test()
- acquia_lift_remove_nested_test in ./
acquia_lift.admin.inc - Removes a nested test from an audience.
- acquia_lift_stop_test_for_audience in ./
acquia_lift.admin.inc - Stops a test for the specified audience of the specified targeting agent.
File
- ./
acquia_lift.admin.inc, line 1909 - acquia_lift.admin.inc Provides functions needed for the admin UI.
Code
function acquia_lift_retire_test($test, $parent_name, $parent_label, $audience_name, $audience_label) {
$test->data['lift_retired'] = time();
$test->data['lift_parent'] = $parent_name;
$test->data['lift_audience'] = $audience_name;
personalize_agent_set_status($test->machine_name, PERSONALIZE_STATUS_COMPLETED);
$test->label = $parent_label . ': ' . $audience_label . t(" (Completed @date)", array(
'@date' => date("Y-m-d"),
));
personalize_agent_save($test);
}