You are here

function farm_inventory_entity_insert in farmOS 7

Implements hook_entity_insert().

File

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

Code

function farm_inventory_entity_insert($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);
}