function filefield_paths_cleanup_temp in File (Field) Paths 5
Same name and namespace in other branches
- 6 filefield_paths.module \filefield_paths_cleanup_temp()
1 call to filefield_paths_cleanup_temp()
- filefield_paths_nodeapi in ./
filefield_paths.module - Implementation of hook_nodeapi().
File
- ./
filefield_paths.module, line 381 - Adds extra functionality to FileFields Path settings.
Code
function filefield_paths_cleanup_temp($paths) {
while ($paths) {
if (@rmdir(file_directory_path() . '/' . implode('/', $paths)) === TRUE) {
array_pop($paths);
continue;
}
break;
}
}