From ed597ca1c37932c357a8d157a9f216b94eabac51 Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Wed, 5 Apr 2023 08:14:53 -0400 Subject: [PATCH] ISTWCMS-5551: adding update hook to remove office hours exceptions --- uw_ct_service.install | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 uw_ct_service.install diff --git a/uw_ct_service.install b/uw_ct_service.install new file mode 100644 index 0000000..4b70489 --- /dev/null +++ b/uw_ct_service.install @@ -0,0 +1,20 @@ +<?php + + +/** + * @file + * Install, update and uninstall for UW Services. + */ + +/** + * Uninstalls office hours exceptions module. + */ +function uw_ct_service_update_9101(&$sandbox) { + + \Drupal::service('module_installer')->uninstall(['office_hours_exceptions']); + + \Drupal::configFactory() + ->getEditable('core.extension') + ->clear('module.office_hours_exceptions') + ->save(TRUE); +} -- GitLab