function imagecache_image_flush in ImageCache 6.2
Same name and namespace in other branches
- 5.2 imagecache.module \imagecache_image_flush()
- 5 imagecache.module \imagecache_image_flush()
Clear cached versions of a specific file in all presets.
Parameters
$path: The Drupal file path to the original image.
4 calls to imagecache_image_flush()
- imagecache_file_delete in ./
imagecache.module - Implementation of filefield.module's hook_file_delete().
- imagecache_flush_action in ./
imagecache.module - Flush all imagecache presets for a given node.
- imagecache_ui_preset_form in ./
imagecache_ui.pages.inc - imagecache_user in ./
imagecache.module - Implementation of hook_user().
File
- ./
imagecache.module, line 1136 - Dynamic image resizer and image cacher.
Code
function imagecache_image_flush($path) {
foreach (imagecache_presets() as $preset) {
$derivative_path = imagecache_create_path($preset['presetname'], $path);
module_invoke_all('imagecache_image_flush', $derivative_path, $preset, $path);
file_delete($derivative_path);
}
}