function shrinktheweb_deleteErrorImages in ShrinkTheWeb 8
Same name and namespace in other branches
- 6 shrinktheweb.api.inc \shrinktheweb_deleteErrorImages()
- 7 shrinktheweb.api.inc \shrinktheweb_deleteErrorImages()
Delete error images.
1 call to shrinktheweb_deleteErrorImages()
- ShrinkTheWebSettingsForm::_submitForm in src/
Form/ ShrinkTheWebSettingsForm.php - Realize form checkbox handlers.
File
- ./
shrinktheweb.api.inc, line 94
Code
function shrinktheweb_deleteErrorImages() {
$aFilenames = array(
'quota' => THUMBNAIL_DIR . QUOTA_IMAGE,
'bandwidth' => THUMBNAIL_DIR . BANDWIDTH_IMAGE,
'no_response' => THUMBNAIL_DIR . NO_RESPONSE_IMAGE,
);
foreach ($aFilenames as $sFile) {
if (file_exists($sFile)) {
@unlink($sFile);
}
}
}