function farm_livestock_update_dependencies in farmOS 7
Implements hook_update_dependencies().
File
- modules/
farm/ farm_livestock/ farm_livestock.install, line 20 - Farm livestock install file.
Code
function farm_livestock_update_dependencies() {
// Ensure that farm_update_7019 runs before farm_livestock_update_7001, so
// that the new Parents field is available.
$dependencies['farm_livestock'][7001] = array(
'farm' => 7019,
);
// Update 7003 (add movement field to medical logs) depends on
// farm_movement_update_7000().
$dependencies['farm_livestock'][7003] = array(
'farm_movement' => 7000,
);
// Update 7004 (enable inventory tracking for animal assets.) depends on
// farm_7032().
$dependencies['farm_livestock'][7004] = array(
'farm' => 7032,
);
// Update 7005 (migrate to group assets) depends on farmOS core update 7033
// (install the farm_group module).
$dependencies['farm_livestock'][7005] = array(
'farm' => 7033,
);
return $dependencies;
}