You are here

function shrinktheweb_deleteAllImages in ShrinkTheWeb 7

Same name and namespace in other branches
  1. 8 shrinktheweb.api.inc \shrinktheweb_deleteAllImages()
  2. 6 shrinktheweb.api.inc \shrinktheweb_deleteAllImages()

Delete cached images

1 call to shrinktheweb_deleteAllImages()
shrinktheweb_admin_settings_submit in ./shrinktheweb.admin.inc

File

./shrinktheweb.api.inc, line 64

Code

function shrinktheweb_deleteAllImages() {
  $rDir = opendir(THUMBNAIL_DIR);
  while (false !== ($sFile = readdir($rDir))) {
    if ($sFile != "." && $sFile != "..") {
      @unlink(THUMBNAIL_DIR . $sFile);
    }
  }
  closedir($rDir);
}