mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Enable new Farm Season and remove Farm Taxonomy via update.php.
This commit is contained in:
parent
0c57d6c3ca
commit
3d5fdeb078
3 changed files with 15 additions and 2 deletions
|
@ -51,5 +51,4 @@ dependencies[] = farm_map
|
|||
dependencies[] = farm_menu
|
||||
dependencies[] = farm_people
|
||||
dependencies[] = farm_quantity
|
||||
dependencies[] = farm_taxonomy
|
||||
dependencies[] = farm_ui
|
||||
|
|
15
farm.install
15
farm.install
|
@ -569,6 +569,21 @@ function farm_update_7026(&$sandbox) {
|
|||
_farm_update_enable_modules(array('farm_import'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Enable new Farm Season module and remove Farm Taxonomy.
|
||||
*/
|
||||
function farm_update_7027(&$sandbox) {
|
||||
|
||||
// Enable Farm Season.
|
||||
_farm_update_enable_modules(array('farm_season'));
|
||||
|
||||
// Delete the farm_taxonomy module.
|
||||
db_delete('system')
|
||||
->condition('name', 'farm_taxonomy')
|
||||
->condition('type', 'module')
|
||||
->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* Update helper function: enable modules.
|
||||
*/
|
||||
|
|
|
@ -355,7 +355,6 @@ function farm_log_update_7007(&$sandbox) {
|
|||
// Revert various Features components to ensure that the new log categories
|
||||
// vocabulary is created, and the new field base and instances are added.
|
||||
$components = array(
|
||||
'farm_taxonomy' => array('taxonomy'),
|
||||
'farm_fields' => array('field_base'),
|
||||
'farm_log_activity' => array('field_instance'),
|
||||
'farm_log_harvest' => array('field_instance'),
|
||||
|
|
Loading…
Reference in a new issue