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:
parent
e188931064
commit
cff262e78a
|
@ -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
|
||||
|
|
15
modules/core/settings/farm_settings.post_update.php
Normal file
15
modules/core/settings/farm_settings.post_update.php
Normal 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']);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue