You are here

db_maintenance.install in DB Maintenance 7

Installation file for DB Maintenance.

File

db_maintenance.install
View source
<?php

/**
 * @file
 * Installation file for DB Maintenance.
 */

/**
 * Implements 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');
  variable_del('db_maintenance_all_tables');

  // 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  ");
  foreach ($result as $row) {
    variable_del($row->name);
  }
}

Functions

Namesort descending Description
db_maintenance_uninstall Implements hook_uninstall().