Commit 694e98d2 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-5600: add update hook to install views_ical if not already installed

parent 81fd2ebb
......@@ -732,3 +732,20 @@ function uw_sites_all_update_9114(array &$sandbox): void {
];
\Drupal::service('module_installer')->install($modules);
}
/**
* Install views ical if not already installed.
*
* This is required because some sites did not get views_ical enabled
* on the last release.
*/
function uw_sites_all_update_9115(&$sandbox) {
// If views_ical is not enabled, enable it.
if (!\Drupal::service('module_handler')->moduleExists('views_ical')) {
$modules = [
'views_ical',
];
\Drupal::service('module_installer')->install($modules);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment