Install the Farm Report module (dependency of Livestock Weight Report).

This commit is contained in:
Michael Stenta 2019-07-29 11:41:15 -04:00
parent c9a21f92e2
commit c44662ed6c
2 changed files with 17 additions and 0 deletions

View File

@ -6,3 +6,4 @@ dependencies[] = farm_livestock
dependencies[] = farm_inventory
dependencies[] = farm_quantity
dependencies[] = farm_quantity_log
dependencies[] = farm_report

View File

@ -0,0 +1,16 @@
<?php
/**
* @file
* Farm livestock weight install.
*/
/**
* Install the Farm Report module (dependency of Livestock Weight Report).
*/
function farm_livestock_weight_update_7000(&$sandbox) {
$module = 'farm_report';
if (!module_exists($module)) {
module_enable(array($module));
}
}