You are here

function imagecache_ui_preset_delete_form_submit in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache_ui.module \imagecache_ui_preset_delete_form_submit()

File

./imagecache_ui.pages.inc, line 61

Code

function imagecache_ui_preset_delete_form_submit($form, &$form_state) {
  $preset = imagecache_preset($form_state['values']['presetid']);
  imagecache_preset_delete($preset);
  drupal_set_message(t('Preset %name (ID: @id) was deleted.', array(
    '%name' => $preset['presetname'],
    '@id' => $preset['presetid'],
  )));
  $form_state['redirect'] = 'admin/build/imagecache';
}