fileupload_delete

Versions
4.6 – 5
fileupload_delete($node)

Implementation of hook_delete().

The node is being delete, remove the file and any information.

Code

developer/examples/fileupload.module, line 235

<?php
function fileupload_delete($node) {
  file_delete($node->filepath);
  db_query("DELETE FROM {fileupload} WHERE nid = %d", $node->nid);
}
?>
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.