function farm_asset_delete in farmOS 7
Delete single asset.
Parameters
FarmAsset $farm_asset: The farm asset entity.
1 call to farm_asset_delete()
- farm_asset_delete_form_submit in modules/
farm/ farm_asset/ farm_asset.pages.inc - Delete form submit handler.
File
- modules/
farm/ farm_asset/ farm_asset.module, line 827 - Farm asset - A farm asset entity type.
Code
function farm_asset_delete(FarmAsset $farm_asset) {
entity_delete('farm_asset', entity_id('farm_asset', $farm_asset));
}