You are here

function image_resize_filter_delete_all in Image Resize Filter 7

Same name and namespace in other branches
  1. 6 image_resize_filter.module \image_resize_filter_delete_all()

Delete the entire set of cached images.

3 calls to image_resize_filter_delete_all()
image_resize_filter_uninstall in ./image_resize_filter.install
Implements hook_uninstall().
image_resize_filter_update_6100 in ./image_resize_filter.install
Remove the old files sub-directory. Paths to resized images are now shorter.
image_resize_filter_update_6102 in ./image_resize_filter.install
Clear out all resized images to give them proper names if they were missing.

File

./image_resize_filter.module, line 674
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_all() {
  foreach (file_get_stream_wrappers() as $scheme => $stream_wrapper) {
    $directory = $scheme . '://resize';
    file_unmanaged_delete_recursive($directory);
  }
  cache_clear_all('*', 'cache_filter');
}