You are here

function farm_update_7019 in farmOS 7

Install Farm Asset Children module.

File

./farm.install, line 570
farmOS install file.

Code

function farm_update_7019(&$sandbox) {

  // Enable the Farm Asset Children module.
  _farm_update_enable_modules(array(
    'farm_asset_children',
  ));

  // Reset the "default_hook" static cache for field_base Features components.
  module_load_include('inc', 'features', 'features.export');
  features_get_default_hooks('field_base', TRUE);

  // Load the farm_asset_children field_base Features include file, otherwise
  // feature_get_default() will not see it, and the revert will fail.
  module_load_include('inc', 'farm_asset_children', 'farm_asset_children.features.field_base');

  // Revert the field_base component of farm_asset_children.
  features_revert(array(
    'farm_asset_children' => array(
      'field_base',
    ),
  ));
}