function backup_migrate_uninstall in Backup and Migrate 5.0.x
Same name and namespace in other branches
- 8.2 backup_migrate.install \backup_migrate_uninstall()
- 8.3 backup_migrate.install \backup_migrate_uninstall()
- 5.2 backup_migrate.install \backup_migrate_uninstall()
- 5 backup_migrate.install \backup_migrate_uninstall()
- 6.3 backup_migrate.install \backup_migrate_uninstall()
- 6 backup_migrate.install \backup_migrate_uninstall()
- 6.2 backup_migrate.install \backup_migrate_uninstall()
- 7.3 backup_migrate.install \backup_migrate_uninstall()
- 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);
}
}