You are here

function acquia_lift_reset_agent in Acquia Lift Connector 7

Resets the data for the specified agent.

1 call to acquia_lift_reset_agent()
acquia_lift_reset_submit in ./acquia_lift.module
Submit callback for the "Reset data" button.

File

./acquia_lift.module, line 2499
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function acquia_lift_reset_agent($agent_name) {
  try {
    $api = AcquiaLiftAPI::getInstance(variable_get('acquia_lift_account_info', array()));
    $api
      ->resetAgentData($agent_name);
  } catch (Exception $e) {
    drupal_set_message(t('The data for the specified agent could not be reset'), 'error');
  }
}