You are here

function farm_asset_type_save in farmOS 7

Save asset type entity.

Parameters

FarmAssetType $farm_asset_type: The farm asset type entity.

2 calls to farm_asset_type_save()
farm_asset_type_form_submit in modules/farm/farm_asset/farm_asset.admin.inc
Submit handler for creating/editing asset types.
farm_livestock_update_7004 in modules/farm/farm_livestock/farm_livestock.install
Enable inventory tracking for animal assets.

File

modules/farm/farm_asset/farm_asset.module, line 878
Farm asset - A farm asset entity type.

Code

function farm_asset_type_save(FarmAssetType $farm_asset_type) {
  entity_save('farm_asset_type', $farm_asset_type);
}