You are here

function imageinfo_cache_file_delete in Imageinfo Cache 6.2

Same name and namespace in other branches
  1. 6 imageinfo_cache.module \imageinfo_cache_file_delete()
  2. 7.3 imageinfo_cache.module \imageinfo_cache_file_delete()

Implements hook_file_delete().

Grab files right before it gets deleted.

Parameters

$file: object File info

File

./imageinfo_cache.module, line 118
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, 'widget');
  }
}