You are here

function backup_migrate_uninstall in Backup and Migrate 5.0.x

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.3 backup_migrate.install \backup_migrate_uninstall()
  9. 7.2 backup_migrate.install \backup_migrate_uninstall()

Implements hook_uninstall().

File

./backup_migrate.install, line 32

Code

function backup_migrate_uninstall($is_syncing) {
  $schedules = Schedule::loadMultiple();

  /** @var \Drupal\backup_migrate\Entity\Schedule $schedule */
  foreach ($schedules as $schedule) {
    $schedule
      ->setLastRun(0);
  }
}