upload_file_delete

Versions
7
upload_file_delete($file)

Implement hook_file_delete().

Code

modules/upload/upload.module, line 291

<?php
function upload_file_delete($file) {
  // Delete all information associated with the file.
  db_delete('upload')->condition('fid', $file->fid)->execute();
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.