You are here

function _filefield_paths_include_trash_cron in File (Field) Paths 6.2

Implements hook_cron().

File

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

Code

function _filefield_paths_include_trash_cron() {
  $trash = unserialize(variable_get('filefield_paths_trash', serialize(array())));
  foreach (array_keys($trash) as $directory) {
    filefield_paths_trash($directory);
    unset($trash[$directory]);
  }
  variable_set('filefield_paths_trash', serialize($trash));
}