function hubspot_oauth_disconnect in HubSpot 7.2
Same name and namespace in other branches
- 6.2 hubspot.admin.inc \hubspot_oauth_disconnect()
- 7.3 hubspot.admin.inc \hubspot_oauth_disconnect()
Form submit handler.
Deletes Hubspot OAuth tokens.
1 string reference to 'hubspot_oauth_disconnect'
- hubspot_admin_settings in ./
hubspot.admin.inc - Form constructor for the Hubspot admin settings form.
File
- ./
hubspot.admin.inc, line 161 - Provides admin settings page to adjust HubSpot API key, debugging settings, JavaScript embedding, and form submission settings.
Code
function hubspot_oauth_disconnect($form, &$form_state) {
variable_del('hubspot_access_token');
variable_del('hubspot_refresh_token');
variable_del('hubspot_expires_in');
}