function hubspot_uninstall in HubSpot 6.2
Same name and namespace in other branches
- 8 hubspot.install \hubspot_uninstall()
- 6 hubspot.install \hubspot_uninstall()
- 7.3 hubspot.install \hubspot_uninstall()
- 7 hubspot.install \hubspot_uninstall()
- 7.2 hubspot.install \hubspot_uninstall()
- 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_log_code');
variable_del('hubspot_access_token');
variable_del('hubspot_refresh_token');
variable_del('hubspot_expires_in');
db_delete('webform_component')
->condition('type', 'hubspot_url')
->execute();
}