Loading scheduler.install +12 −0 Original line number Diff line number Diff line Loading @@ -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. */ Loading Loading
scheduler.install +12 −0 Original line number Diff line number Diff line Loading @@ -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. */ Loading