You are here

function filehash_file_delete in File Hash 7

Same name and namespace in other branches
  1. 8 filehash.module \filehash_file_delete()

Implements hook_file_delete().

File

./filehash.module, line 47
Generate hashes for each uploaded file.

Code

function filehash_file_delete($file) {
  db_delete('filehash')
    ->condition('fid', $file->fid)
    ->execute();
}