Enable new Farm Season and remove Farm Taxonomy via update.php.

This commit is contained in:
Michael Stenta 2017-08-22 12:50:08 -04:00
parent 0c57d6c3ca
commit 3d5fdeb078
3 changed files with 15 additions and 2 deletions

View File

@ -51,5 +51,4 @@ dependencies[] = farm_map
dependencies[] = farm_menu
dependencies[] = farm_people
dependencies[] = farm_quantity
dependencies[] = farm_taxonomy
dependencies[] = farm_ui

View File

@ -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.
*/

View File

@ -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'),