function entity_metadata_delete_file in Entity API 7
Callback to delete a file. Watch out to not accidentilly implement hook_file_delete().
1 string reference to 'entity_metadata_delete_file'
- _entity_info_add_metadata in ./
entity.module - Adds metadata and callbacks for core entities to the entity info.
File
- modules/
callbacks.inc, line 952 - Provides various callbacks for the whole core module integration.
Code
function entity_metadata_delete_file($fid) {
file_delete(file_load($fid), TRUE);
}