You are here

function imagecache_file_delete in ImageCache 6.2

Implementation of filefield.module's hook_file_delete().

Remove derivative images after the originals are deleted by filefield.

File

./imagecache.module, line 676
Dynamic image resizer and image cacher.

Code

function imagecache_file_delete($file) {
  if (isset($file->filepath)) {
    imagecache_image_flush($file->filepath);
  }
}