You are here

function clients_drupal_uninstall in Web Service Clients 7

Same name and namespace in other branches
  1. 6.2 connections/clients_drupal/clients_drupal.install \clients_drupal_uninstall()
  2. 6 backends/clients_drupal/clients_drupal.install \clients_drupal_uninstall()
  3. 7.3 connections/clients_drupal/clients_drupal.install \clients_drupal_uninstall()
  4. 7.2 connections/clients_drupal/clients_drupal.install \clients_drupal_uninstall()

Implementation of hook_uninstall().

File

backends/clients_drupal/clients_drupal.install, line 20
Sets system variables and deletes connections on uninstall @todo Delete resources on uninstall

Code

function clients_drupal_uninstall() {

  // remove any drupal services from connections table
  db_query("DELETE {clients_connections} FROM {clients_connections} \n      WHERE {clients_connections}.type = 'drupal_services'");

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