Skip to content

enables localgov_base_helper module #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"drupal/search_api": "^1.21",
"drush/drush": ">=10",
"localgovdrupal/localgov_alert_banner": "^1.2.0",
"localgovdrupal/localgov_base": "^1.3.1",
"localgovdrupal/localgov_base": "^1.7.0",
"localgovdrupal/localgov_core": "^2.12.0",
"localgovdrupal/localgov_demo": "^3.0@alpha",
"localgovdrupal/localgov_directories": "^3.0",
Expand Down
1 change: 1 addition & 0 deletions localgov.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ install:
- localgov_services:localgov_services_navigation
- localgov_services:localgov_services_page
- localgov_services:localgov_services_sublanding
- localgov_base:localgov_base_helper

dependencies:
- localgov_core:localgov_core
Expand Down
15 changes: 15 additions & 0 deletions localgov.install
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,18 @@ function localgov_update_9503() {
}
}
}

/**
* Update existing sites to enable the theme dependency module for base.
*/
function localgov_update_9504() {
// The theme dependency should have caused the module to exist, but lets not
// fail if it's not there, as this is just a helper. The theme will continue
// to work when updated later, but report the requirement.
if (\Drupal::service('theme_handler')->themeExists('localgov_base')) {
if (\Drupal::service('module_installer')->install(['localgov_base_helper'])) {
return t('Base theme helper module enabled.');
}
return t('LocalGov Base theme will require the LocalGov Base Helper module. Enable it manually when upgrading to version 1.7.0 or higher.');
}
}
Loading