You are here

function flickrapi_uninstall in Flickr API 7.2

Same name and namespace in other branches
  1. 6 flickrapi.install \flickrapi_uninstall()
  2. 7 flickrapi.install \flickrapi_uninstall()

Implements hook_uninstall(). Clean up old variables.

File

./flickrapi.install, line 33
Update functions for the FlickrAPI module.

Code

function flickrapi_uninstall() {
  variable_del('flickrapi_cache');
  variable_del('flickrapi_cache_path');
  variable_del('flickrapi_api_key');
  variable_del('flickrapi_api_secret');
  variable_del('flickrapi_cache_duration');
  variable_del('flickrapi_default_nsid');
  variable_del('flickrapi_access_permissions');

  // flickrapi is disabled so we have to load it manually to use its functions.
  module_load_include('module', 'flickrapi', 'flickrapi');
  _flickrapi_oauth_clear();
}