function path_file_delete in File Entity (fieldable files) 7.2
Same name and namespace in other branches
- 7.3 file_entity.module \path_file_delete()
Implements hook_file_delete() on behalf of path.module.
File
- ./
file_entity.module, line 2560 - Extends Drupal file entities to be fieldable and viewable.
Code
function path_file_delete($file) {
// Delete all aliases associated with this file.
path_delete(array(
'source' => 'file/' . $file->fid,
));
}