diff --git a/composer.json b/composer.json index 2c383d0..3223367 100644 --- a/composer.json +++ b/composer.json @@ -14,10 +14,11 @@ "drupal/admin_toolbar": "^3.0", "drupal/content_lock": "^2.4", "drupal/core": "^10.0", + "drupal/entity_browser": "^2.9", "drupal/gin": "^3.0@alpha", "drupal/gin_login": "^2.0.3", "drupal/gin_toolbar": "^1.0@beta", - "drupal/entity_browser": "^2.9", + "drupal/msqrole": "^1.0", "drupal/preview_link": "^2.1@alpha", "drupal/redirect": "^1.6", "drupal/simple_sitemap": "^4.1", diff --git a/localgov.info.yml b/localgov.info.yml index 78dda7f..b508b07 100644 --- a/localgov.info.yml +++ b/localgov.info.yml @@ -37,6 +37,7 @@ install: - entity_browser:entity_browser - gin_login:gin_login - gin_toolbar:gin_toolbar + - msqrole:msqrole - preview_link:preview_link - redirect:redirect - redirect:redirect_404 diff --git a/localgov.install b/localgov.install index 347addf..3841bb9 100644 --- a/localgov.install +++ b/localgov.install @@ -101,3 +101,12 @@ function localgov_update_9503() { } } } + +/** + * Enable msqrole module. + */ +function localgov_update_9504() { + if (!\Drupal::service('module_handler')->moduleExists('msqrole')) { + \Drupal::service('module_installer')->install(['msqrole']); + } +}