function imagecache_preset_delete in ImageCache 5.2
Same name and namespace in other branches
- 6.2 imagecache.module \imagecache_preset_delete()
1 call to imagecache_preset_delete()
File
- ./
imagecache.module, line 829 - Dynamic image resizer and image cacher.
Code
function imagecache_preset_delete($preset) {
imagecache_preset_flush($preset['presetid']);
db_query('DELETE FROM {imagecache_action} where presetid = %d', $preset['presetid']);
db_query('DELETE FROM {imagecache_preset} where presetid = %d', $preset['presetid']);
imagecache_presets(true);
return true;
}