function _filefield_paths_include_trash_file_delete in File (Field) Paths 6.2
Implements hook_file_delete().
File
- includes/
trash.inc, line 22 - Trash cleanup functionality for FileField Paths module.
Code
function _filefield_paths_include_trash_file_delete($file) {
$trash = unserialize(variable_get('filefield_paths_trash', serialize(array())));
// Add directory to trash queue.
$trash[dirname($file->filepath)] = TRUE;
variable_set('filefield_paths_trash', serialize($trash));
}