You are here

function farm_crop_update_dependencies in farmOS 7

Implements hook_update_dependencies().

File

modules/farm/farm_crop/farm_crop.install, line 17
Farm crop install file.

Code

function farm_crop_update_dependencies() {

  // Update 7001 (migrate planting field to asset field on harvest and input
  // logs) depends on farm_log update 7004 (enable log type sub-modules)
  $dependencies['farm_crop'][7001] = array(
    'farm_log' => 7004,
  );

  // Ensure that farm_update_7019() runs before farm_crop_update_7002(), so that
  // the Asset Children module is installed before we revert features. This
  // issue was discovered late in the farmOS beta13 upgrade path testing, which
  // is why we don't have a dedicated hook for adding the Parents field in this
  // module. Instead we're just going to join forces with an existing hook that
  // will do the same thing.
  $dependencies['farm_crop'][7002] = array(
    'farm' => 7019,
  );

  // Update 7003 (add movement field to seedings and transplantings) depends on
  // farm_movement_update_7000().
  $dependencies['farm_crop'][7003] = array(
    'farm_movement' => 7000,
  );
  return $dependencies;
}