3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Add farm_setup dependency for farm_settings

This commit is contained in:
Paul Weidner 2023-08-09 15:22:08 -07:00 committed by Michael Stenta
parent e188931064
commit cff262e78a
2 changed files with 17 additions and 0 deletions

View file

@ -3,3 +3,5 @@ description: Provides settings pages for core farmOS configuration options.
type: module
package: farmOS
core_version_requirement: ^9
dependencies:
- farm:farm_setup

View file

@ -0,0 +1,15 @@
<?php
/**
* @file
* Post update functions for farm_settings module.
*/
/**
* Install farmOS Setup module.
*/
function farm_settings_post_update_install_farm_setup(&$sandbox = NULL) {
if (!\Drupal::service('module_handler')->moduleExists('farm_setup')) {
\Drupal::service('module_installer')->install(['farm_setup']);
}
}