function imageinfo_cache_file_insert in Imageinfo Cache 6.2
Same name and namespace in other branches
- 6 imageinfo_cache.module \imageinfo_cache_file_insert()
Implements hook_file_insert().
Grab the file right after it has been uploaded via filefield.
Parameters
$file: object File info
File
- ./
imageinfo_cache.module, line 102 - 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, 'widget');
}
}