Add Farm Import as a farmOS dependency and install on existing sites via an update hook.

This commit is contained in:
Michael Stenta 2017-06-30 09:54:15 -04:00
parent 03fd5d4441
commit b12434da94
2 changed files with 8 additions and 0 deletions

View File

@ -44,6 +44,7 @@ dependencies[] = farm_area
dependencies[] = farm_asset
dependencies[] = farm_fields
dependencies[] = farm_help
dependencies[] = farm_import
dependencies[] = farm_log
dependencies[] = farm_map
dependencies[] = farm_menu

View File

@ -562,6 +562,13 @@ function farm_update_7025(&$sandbox) {
->execute();
}
/**
* Install the new Farm Import module.
*/
function farm_update_7026(&$sandbox) {
_farm_update_enable_modules(array('farm_import'));
}
/**
* Update helper function: enable modules.
*/