You are here

db_maintenance.install in DB Maintenance 6

Installation file for DB Maintenance (http://drupal.org/project/db_maintenance).

File

db_maintenance.install
View source
<?php

/**
 * @file
 * Installation file for DB Maintenance (http://drupal.org/project/db_maintenance).
 */

/**
 * Implementation of hook_uninstall().
 */
function db_maintenance_uninstall() {

  // Delete individual configuration options.
  variable_del('db_maintenance_cron_last');
  variable_del('db_maintenance_cron_frequency');
  variable_del('db_maintenance_log');

  // Delete the list of tables for each DB.
  $result = db_query("\n    SELECT name FROM {variable}\n    WHERE name LIKE 'db_maintenance_table_list_%'\n  ");
  while ($row = db_fetch_object($result)) {
    variable_del($row->name);
  }
}

Functions

Namesort descending Description
db_maintenance_uninstall Implementation of hook_uninstall().