You are here

function backup_migrate_uninstall in Backup and Migrate 5.2

Same name and namespace in other branches
  1. 8.2 backup_migrate.install \backup_migrate_uninstall()
  2. 8.3 backup_migrate.install \backup_migrate_uninstall()
  3. 5 backup_migrate.install \backup_migrate_uninstall()
  4. 6.3 backup_migrate.install \backup_migrate_uninstall()
  5. 6 backup_migrate.install \backup_migrate_uninstall()
  6. 6.2 backup_migrate.install \backup_migrate_uninstall()
  7. 7.3 backup_migrate.install \backup_migrate_uninstall()
  8. 7.2 backup_migrate.install \backup_migrate_uninstall()
  9. 5.0.x backup_migrate.install \backup_migrate_uninstall()

Remove variables on uninstall.

File

./backup_migrate.install, line 99
Install hooks for Backup and Migrate.

Code

function backup_migrate_uninstall() {
  db_query("DROP TABLE {backup_migrate_profiles}");
  db_query("DROP TABLE {backup_migrate_destinations}");
  db_query("DROP TABLE {backup_migrate_schedules}");
  db_query("DELETE FROM {variable} WHERE name LIKE 'backup_migrate_%'");
  cache_clear_all('variables', 'cache');
}