You are here

function clients_flickr_uninstall in Web Service Clients 7

Same name and namespace in other branches
  1. 6 backends/clients_flickr/clients_flickr.install \clients_flickr_uninstall()

Implementation of hook_uninstall().

File

backends/clients_flickr/clients_flickr.install, line 22
Sets variables and deletes connections on uninstall @todo delete resources on uninstall

Code

function clients_flickr_uninstall() {

  // remove any drupal services from connections table
  db_query("DELETE {clients_connections} FROM {clients_connections} \n      WHERE {clients_connections}.type = '%s'", variable_get('clients_flickr_type', 'Flickr'));

  // clean up any variables created by module
  $module_variables = array(
    'clients_flickr_type',
  );
  foreach ($module_variables as $module_variable) {
    variable_del($module_variable);
  }
}