You are here

function imagecache_preset_delete in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache.module \imagecache_preset_delete()
1 call to imagecache_preset_delete()
imagecache_ui_preset_delete_form_submit in ./imagecache_ui.pages.inc

File

./imagecache.module, line 1093
Dynamic image resizer and image cacher.

Code

function imagecache_preset_delete($preset) {
  imagecache_preset_flush($preset);
  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;
}