function imageinfo_cache_file_delete in Imageinfo Cache 6
Same name and namespace in other branches
- 6.2 imageinfo_cache.module \imageinfo_cache_file_delete()
- 7.3 imageinfo_cache.module \imageinfo_cache_file_delete()
Implementation of hook_file_delete().
Grab files right before it gets deleted.
Parameters
$file: object File info
File
- ./
imageinfo_cache.module, line 114 - Cache image info for theme_imagecache & theme_imagefield_image.
Code
function imageinfo_cache_file_delete($file) {
// Make sure file has the correct info an it is an image.
$op = 'delete';
if (imageinfo_cache_check_file($file, $op)) {
imageinfo_cache_shutdown_async($file, $op);
}
}