| Versionen | |
|---|---|
| drupal7 | hook_file_delete($file) |
Respond to a file being deleted.
see file_delete()
$file The file that has just been deleted.
None.
modules/
<?php
function hook_file_delete($file) {
// Delete all information associated with the file.
db_delete('upload')->condition('fid', $file->fid)->execute();
}
?>
Kommentare
Kommentar hinzufügen