Skip to content

Commit

Permalink
Merge pull request #539 from City-of-Helsinki/UHF-X_focal_point_2.0_d…
Browse files Browse the repository at this point in the history
…ependency

UHF-X: Added update hook that enables Focal Point 2.0 dependency
  • Loading branch information
teroelonen authored Jun 21, 2023
2 parents 135fb82 + 4884fdf commit 813874c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/helfi_media/helfi_media.install
Original file line number Diff line number Diff line change
Expand Up @@ -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_9013() : void {
\Drupal::service('module_installer')->install(['jquery_ui_draggable']);
}

0 comments on commit 813874c

Please sign in to comment.