You are here

function image_resize_filter_delete_temp_file in Image Resize Filter 7

Same name and namespace in other branches
  1. 8 image_resize_filter.module \image_resize_filter_delete_temp_file()
  2. 6 image_resize_filter.module \image_resize_filter_delete_temp_file()

A short-cut function to delete temporary remote images.

2 calls to image_resize_filter_delete_temp_file()
image_resize_filter_get_images in ./image_resize_filter.module
Parsing function to locate all images in a piece of text that need replacing.
image_resize_filter_process_images in ./image_resize_filter.module
Processing function for image resize filter. Replace img src properties with a URL to a resized image.

File

./image_resize_filter.module, line 628
After adding to a text format, this filter will parse the contents of submitted content and automatically scale image files to match the set dimensions of img tags.

Code

function image_resize_filter_delete_temp_file($source, $uri) {
  if ($source == 'remote' && is_file($uri)) {
    @unlink($uri);
  }
}