You are here

function services_uninstall in Services 7

Same name and namespace in other branches
  1. 5 services.install \services_uninstall()
  2. 6.3 services.install \services_uninstall()
  3. 6 services.install \services_uninstall()
  4. 6.2 services.install \services_uninstall()
  5. 7.3 services.install \services_uninstall()

Implements hook_uninstall().

File

./services.install, line 25
@author Services Dev Team

Code

function services_uninstall() {
  drupal_uninstall_schema('services');
  $ret = array();

  // Drop legacy tables
  $legacy_tables = array(
    'services_keys',
    'services_timestamp_nonce',
  );
  foreach ($legacy_tables as $table) {
    if (db_table_exists($table)) {
      db_drop_table($ret, $table);
    }
  }
  variable_del('services_use_key');
  variable_del('services_use_sessid');
  variable_del('services_debug');
  variable_del('services_auth_module');
}