You are here

function imagecache_flush_action in ImageCache 6.2

Flush all imagecache presets for a given node.

Parameters

$node: A node object.

$context: Contains values from the calling action.

See also

imagecache_action_info()

File

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

Code

function imagecache_flush_action(&$node, $context) {
  $files = imagecache_get_images_in_node($node);
  if (!empty($files)) {
    foreach ($files as $file) {
      imagecache_image_flush($file['filepath']);
    }
  }
}