function hook_imagecache_image_flush in ImageCache 6.2
Allows other modules to perform actions on an image before it is flushed.
This hook can be used to send purge requests to a reverse proxy or delete a file from a remote file server or CDN when the imagecached version is flushed.
Implementations of hook_imagecache_image_flush should not delete the image at $filepath, as ImageCache will perform this action.
Parameters
$derivative_path: The path to the file about to be flushed.
$preset: An ImageCache preset array.
$original_path: The Drupal file path to the original image.
1 invocation of hook_imagecache_image_flush()
- imagecache_image_flush in ./
imagecache.module - Clear cached versions of a specific file in all presets.
File
- ./
imagecache.api.php, line 84 - Hooks provided by the ImageCache module.
Code
function hook_imagecache_image_flush($derivative_path, $preset, $original_path) {
}