mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Install the Farm Report module (dependency of Livestock Weight Report).
This commit is contained in:
parent
c9a21f92e2
commit
c44662ed6c
|
@ -6,3 +6,4 @@ dependencies[] = farm_livestock
|
||||||
dependencies[] = farm_inventory
|
dependencies[] = farm_inventory
|
||||||
dependencies[] = farm_quantity
|
dependencies[] = farm_quantity
|
||||||
dependencies[] = farm_quantity_log
|
dependencies[] = farm_quantity_log
|
||||||
|
dependencies[] = farm_report
|
||||||
|
|
|
@ -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));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue