You are here

function hubspot_uninstall in HubSpot 6

Same name and namespace in other branches
  1. 8 hubspot.install \hubspot_uninstall()
  2. 6.2 hubspot.install \hubspot_uninstall()
  3. 7.3 hubspot.install \hubspot_uninstall()
  4. 7 hubspot.install \hubspot_uninstall()
  5. 7.2 hubspot.install \hubspot_uninstall()
  6. 3.x hubspot.install \hubspot_uninstall()

Implements hook_uninstall() to remove our saved variables and all traces of the hubspot_url component

File

./hubspot.install, line 18
Implement install/uninstall hooks and warn about webform component errors on disable.

Code

function hubspot_uninstall() {
  variable_del('hubspot_debug_on');
  variable_del('hubspot_debug_email');
  variable_del('hubspot_apikey');
  variable_del('hubspot_log_code');
  db_query("DELETE FROM {webform_component} WHERE `type` = 'hubspot_url'");
}