function asset_file_delete in Asset 6
Same name and namespace in other branches
- 5.2 asset.types.inc \asset_file_delete()
Implementation of hook_asset_type('delete') for file asset type
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);
}