You are here

function _filefield_paths_include_trash_filefield_paths_file_postprocess in File (Field) Paths 6.2

Implements hook_filefield_paths_file_postprocess().

File

includes/trash.inc, line 10
Trash cleanup functionality for FileField Paths module.

Code

function _filefield_paths_include_trash_filefield_paths_file_postprocess($source, $file, $node, $setings) {
  $trash = unserialize(variable_get('filefield_paths_trash', serialize(array())));

  // Add directory to trash queue.
  $trash[dirname($source)] = TRUE;
  variable_set('filefield_paths_trash', serialize($trash));
}