You are here

function imagecache_imagefield_file in ImageCache 5.2

Implementation of hook_imagefield_file().

File

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

Code

function imagecache_imagefield_file($op, $file) {
  switch ($op) {

    // Delete imagecache presets when imagecache images are deleted.
    case 'delete':
      imagecache_image_flush($file['filepath']);
      break;

    // Create imagecache derivatives when files are saved.
    case 'save':
      break;
  }
}