You are here

function farm_inventory_entity_update in farmOS 7

Implements hook_entity_update().

File

modules/farm/farm_inventory/farm_inventory.module, line 146

Code

function farm_inventory_entity_update($entity, $type) {

  // Only act on farm_asset_type entities.
  if ($type != 'farm_asset_type') {
    return;
  }

  // Save asset type inventory settings.
  _farm_inventory_asset_type_settings_save($entity);
}