You are here

function image_resize_filter_delete_temp_file in Image Resize Filter 8

Same name and namespace in other branches
  1. 6 image_resize_filter.module \image_resize_filter_delete_temp_file()
  2. 7 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()
FilterImageResize::getImages in src/Plugin/Filter/FilterImageResize.php
Locate all images in a piece of text that need replacing.
image_resize_filter_get_images in ./image_resize_filter.module
Parsing function to locate all images in a piece of text that need replacing.

File

./image_resize_filter.module, line 274
Contains image_resize_filter.module.

Code

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