You are here

function asset_file_delete in Asset 5.2

Same name and namespace in other branches
  1. 6 asset.types.inc \asset_file_delete()

Implementation of hook_asset_type('delete') for file asset type

Related topics

File

./asset.types.inc, line 199
This file is included by asset_asset_type() and includes all the file and directory specific functions

Code

function asset_file_delete($asset) {
  file_delete($asset->file['filepath']);
  db_query("DELETE FROM {files} WHERE fid=%d", $asset->file['fid']);
  db_query("DELETE FROM {asset_files} WHERE aid=%d", $asset->aid);
}