You are here

function hubspot_uninstall in HubSpot 7

Same name and namespace in other branches
  1. 8 hubspot.install \hubspot_uninstall()
  2. 6.2 hubspot.install \hubspot_uninstall()
  3. 6 hubspot.install \hubspot_uninstall()
  4. 7.3 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
Handle install/uninstall and warn users of problems with disabled Webform components.

Code

function hubspot_uninstall() {
  variable_del('hubspot_debug_on');
  variable_del('hubspot_debug_email');
  variable_del('hubspot_apikey');
  variable_del('hubspot_log_code');
  db_delete('webform_component')
    ->condition('type', 'hubspot_url')
    ->execute();
}