function imageinfo_cache_file_insert in Imageinfo Cache 6
Same name and namespace in other branches
- 6.2 imageinfo_cache.module \imageinfo_cache_file_insert()
Implementation of hook_file_insert().
Grab the file right after it has been uploaded via filefield.
Parameters
$file: object File info
File
- ./
imageinfo_cache.module, line 98 - Cache image info for theme_imagecache & theme_imagefield_image.
Code
function imageinfo_cache_file_insert($file) {
// Make sure file has the correct info an it is an image.
$op = 'insert';
if (imageinfo_cache_check_file($file, $op)) {
imageinfo_cache_shutdown_async($file, $op);
}
}