function clients_drupal_uninstall in Web Service Clients 6
Same name and namespace in other branches
- 6.2 connections/clients_drupal/clients_drupal.install \clients_drupal_uninstall()
- 7.3 connections/clients_drupal/clients_drupal.install \clients_drupal_uninstall()
- 7 backends/clients_drupal/clients_drupal.install \clients_drupal_uninstall()
- 7.2 connections/clients_drupal/clients_drupal.install \clients_drupal_uninstall()
Implementation of hook_uninstall().
File
- backends/
clients_drupal/ clients_drupal.install, line 23 - 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 = '%s'", variable_get('clients_drupal_type', 'Drupal Services'));
// clean up any variables created by module
$module_variables = array(
'clients_drupal_type',
);
foreach ($module_variables as $module_variable) {
variable_del($module_variable);
}
}