function acquia_lift_personalize_agent_delete in Acquia Lift Connector 7
Same name and namespace in other branches
- 7.2 acquia_lift.module \acquia_lift_personalize_agent_delete()
Implements hook_personalize_agent_delete().
File
- ./
acquia_lift.module, line 654 - acquia_lift.module Provides Acquia Lift-specific personalization functionality.
Code
function acquia_lift_personalize_agent_delete($agent_data) {
if (!acquia_lift_is_testing_agent($agent_data)) {
return;
}
acquia_lift_agent_clear_verified_status($agent_data->machine_name);
$queue = DrupalQueue::get('acquia_lift_sync');
$queue
->createItem(array(
'method' => 'deleteAgent',
'args' => array(
$agent_data->machine_name,
),
));
// Make sure the queue gets triggered on the next request.
$_SESSION['acquia_lift_queue_trigger'] = 1;
}