function shrinktheweb_deleteAllImages in ShrinkTheWeb 8
Same name and namespace in other branches
- 6 shrinktheweb.api.inc \shrinktheweb_deleteAllImages()
- 7 shrinktheweb.api.inc \shrinktheweb_deleteAllImages()
Delete cached images.
2 calls to shrinktheweb_deleteAllImages()
- ShrinkTheWebSettingsForm::submitForm in src/
Form/ ShrinkTheWebSettingsForm.php - Form submission handler.
- ShrinkTheWebSettingsForm::_submitForm in src/
Form/ ShrinkTheWebSettingsForm.php - Realize form checkbox handlers.
File
- ./
shrinktheweb.api.inc, line 81
Code
function shrinktheweb_deleteAllImages() {
$rDir = opendir(THUMBNAIL_DIR);
while (FALSE !== ($sFile = readdir($rDir))) {
if ($sFile != "." && $sFile != "..") {
@unlink(THUMBNAIL_DIR . $sFile);
}
}
closedir($rDir);
}