You are here

function backup_migrate_uninstall in Backup and Migrate 7.3

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.2 backup_migrate.install \backup_migrate_uninstall()
  4. 5 backup_migrate.install \backup_migrate_uninstall()
  5. 6.3 backup_migrate.install \backup_migrate_uninstall()
  6. 6 backup_migrate.install \backup_migrate_uninstall()
  7. 6.2 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()

Implements hook_uninstall().

File

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

Code

function backup_migrate_uninstall() {
  variable_del('backup_migrate_backup_max_time');
  variable_del('backup_migrate_cleanup_temp_files');
  variable_del('backup_migrate_cleanup_time');
  variable_del('backup_migrate_copy_destination_id');
  variable_del('backup_migrate_data_bytes_per_line');
  variable_del('backup_migrate_data_rows_per_line');
  variable_del('backup_migrate_data_rows_per_query');
  variable_del('backup_migrate_destination_id');
  variable_del('backup_migrate_disable_cron');
  variable_del('backup_migrate_max_email_size');
  variable_del('backup_migrate_memory_limit');
  variable_del('backup_migrate_profile_id');
  variable_del('backup_migrate_schedule_buffer');
  variable_del('backup_migrate_schedule_last_run_');
  variable_del('backup_migrate_smart_keep_daily');
  variable_del('backup_migrate_smart_keep_hourly');
  variable_del('backup_migrate_smart_keep_weekly');
  variable_del('backup_migrate_source_id');
  variable_del('backup_migrate_timeout_buffer');
  variable_del('backup_migrate_verbose');
  variable_del('nodesquirrel_endpoint_urls');
  variable_del('nodesquirrel_schedule');
  variable_del('nodesquirrel_schedule_enabled');
  variable_del('nodesquirrel_schedule_source_id');
  variable_del('nodesquirrel_secret_key');

  // Remove the dynamic generated 'last run' variables.
  $last_ran_schedules = db_select('variable', 'var')
    ->fields('var', array(
    'name',
  ))
    ->condition('name', 'backup\\_migrate\\_schedule\\_last\\_run\\_%', 'LIKE')
    ->execute()
    ->fetchAllAssoc('name', PDO::FETCH_ASSOC);
  foreach ($last_ran_schedules as $key => $schedule) {
    variable_del($key);
  }
}