function google_analytics_api_revoke in Google Analytics Reports 7
Same name and namespace in other branches
- 6 google_analytics_api.module \google_analytics_api_revoke()
1 call to google_analytics_api_revoke()
- google_analytics_api_admin_submit in ./
google_analytics_api.pages.inc - Submit handler. Steps throuh the OAuth process, revokes tokens, saves profiles.
File
- ./
google_analytics_api.module, line 148 - Implements the API through which Google Analytics data can be accessed.
Code
function google_analytics_api_revoke() {
$GAFeed = google_analytics_api_new_gafeed();
$GAFeed
->revokeToken();
variable_del('google_analytics_reports_profile_id');
variable_del('google_analytics_reports_consumer_key');
variable_del('google_analytics_reports_consumer_secret');
variable_del('google_analytics_reports_oauth_token');
variable_del('google_analytics_reports_oauth_token_secret');
variable_del('google_analytics_reports_cache_length');
}