Commit a099ac11 authored by Jonathan Smith's avatar Jonathan Smith Committed by Jonathan Smith
Browse files

Issue #3318332 by jonathan1055: Add hook_uninstall

parent 0cbec490
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -78,6 +78,18 @@ function scheduler_install() {
    ->save();
}

/**
 * Implements hook_uninstall().
 */
function scheduler_uninstall() {
  // This should not be necessary but incase the entity db tables or config have
  // got out-of-step with the Scheduler plugins make sure all is up to date so
  // that uninstalling will run OK.
  $scheduler_manager = \Drupal::service('scheduler.manager');
  $scheduler_manager->entityUpdate();
  $scheduler_manager->entityRevert();
}

/**
 * Reset date and time formats to default.
 */