hook_file_delete

Versions
mediamosa-21
hook_file_delete($file)

Respond to a file being deleted.

See also

file_delete()

@see upload_file_delete()

Parameters

$file The file that has just been deleted.

Related topics

Code

modules/system/system.api.php, line 1743

<?php
function hook_file_delete($file) {
  // Delete all information associated with the file.
  db_delete('upload')->condition('fid', $file->fid)->execute();
}
?>