function acquia_lift_uninstall in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7.3 acquia_lift.install \acquia_lift_uninstall()
- 7 acquia_lift.install \acquia_lift_uninstall()
Implements hook_uninstall().
File
- ./
acquia_lift.install, line 40 - Acquia Lift - Installation file.
Code
function acquia_lift_uninstall() {
$vars = array(
'acquia_lift_account_info',
'acquia_lift_api_url',
'acquia_lift_auto_goal',
'acquia_lift_client_side_goals',
'acquia_lift_confidence_measure',
'acquia_lift_html_context_strip',
'acquia_lift_legacy_agents',
'acquia_lift_version',
'acquia_lift_report_max_days',
'acquia_lift_unibar_allow_status_change',
'acquia_lift_report_upgrade_timestamp',
'acquia_lift_validate_response',
'acquia_lift_profiles_access_key',
'acquia_lift_profiles_account_name',
'acquia_lift_profiles_api_url',
'acquia_lift_profiles_secret_key',
'acquia_lift_profiles_js_path',
'acquia_lift_profiles_site_name',
);
foreach ($vars as $var) {
variable_del($var);
}
// Delete the menu items and rebuild router information.
menu_delete_links('acquia-lift-controls');
menu_rebuild();
// Delete any variables used to store report data sources for agents.
if (function_exists('personalize_agent_load_multiple')) {
foreach (personalize_agent_load_multiple() as $agent) {
$variable_name = "acquia_lift_report_source_{$agent->machine_name}";
variable_del($variable_name);
}
}
}