From 20ebdcb83cbdc8013df8bd5fdb41beb2216e3246 Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Wed, 21 Jun 2023 11:21:03 +0300 Subject: [PATCH 1/2] Added update hook that enables Focal Point 2.0 dependency for jquery_ui and jquery_ui_draggable --- modules/helfi_media/helfi_media.install | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/helfi_media/helfi_media.install b/modules/helfi_media/helfi_media.install index b9ec4a56e..a47586d86 100644 --- a/modules/helfi_media/helfi_media.install +++ b/modules/helfi_media/helfi_media.install @@ -106,3 +106,13 @@ function helfi_media_install($is_syncing) : void { helfi_media_grant_permissions(); } + +/** + * Install Focal Point 2.0 dependencies jquery_ui and jquery_ui_draggable. + * + * The focal point 2.0 requires these modules but doesn't enable them + * automatically. + */ +function helfi_media_update_9001() : void { + \Drupal::service('module_installer')->install(['jquery_ui_draggable']); +} From 4884fdf28887e384c17e199ab91faf0fb5ed90cf Mon Sep 17 00:00:00 2001 From: Tero Elonen Date: Wed, 21 Jun 2023 11:29:40 +0300 Subject: [PATCH 2/2] Changed the update_hook to correct number --- modules/helfi_media/helfi_media.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/helfi_media/helfi_media.install b/modules/helfi_media/helfi_media.install index a47586d86..306a93806 100644 --- a/modules/helfi_media/helfi_media.install +++ b/modules/helfi_media/helfi_media.install @@ -113,6 +113,6 @@ function helfi_media_install($is_syncing) : void { * The focal point 2.0 requires these modules but doesn't enable them * automatically. */ -function helfi_media_update_9001() : void { +function helfi_media_update_9013() : void { \Drupal::service('module_installer')->install(['jquery_ui_draggable']); }