You are here

function path_file_delete in File Entity (fieldable files) 7.3

Same name and namespace in other branches
  1. 7.2 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,
  ));
}