function db_maintenance_uninstall in DB Maintenance 6
Same name and namespace in other branches
- 8.2 db_maintenance.install \db_maintenance_uninstall()
- 7.2 db_maintenance.install \db_maintenance_uninstall()
- 7 db_maintenance.install \db_maintenance_uninstall()
Implementation of hook_uninstall().
File
- ./
db_maintenance.install, line 11 - Installation file for DB Maintenance (http://drupal.org/project/db_maintenance).
Code
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);
}
}