| 7 system.api.php | hook_file_delete($file) |
| 8 system.api.php | hook_file_delete($file) |
Respond to a file being deleted.
Parameters
$file: The file that has just been deleted.
See also
Related topics
5 functions implement hook_file_delete()
1 invocation of hook_file_delete()
File
- modules/
system/ system.api.php, line 2809 - Hooks provided by Drupal core and the System module.
Code
function hook_file_delete($file) {
// Delete all information associated with the file.
db_delete('upload')->condition('fid', $file->fid)->execute();
}
Login or register to post comments