You are here

function imagecache_ui_preset_delete_form in ImageCache 5.2

Same name and namespace in other branches
  1. 6.2 imagecache_ui.pages.inc \imagecache_ui_preset_delete_form()
1 string reference to 'imagecache_ui_preset_delete_form'
imagecache_ui_menu in ./imagecache_ui.module

File

./imagecache_ui.module, line 163

Code

function imagecache_ui_preset_delete_form($presetid) {
  $preset = imagecache_preset($presetid);
  if (!$preset) {
    drupal_set_message(t('The specified preset was not found'), 'error');
    drupal_goto('admin/build/imagecache');
  }
  $form = array();
  $form['presetid'] = array(
    '#type' => 'value',
    '#value' => $preset['presetid'],
  );
  return confirm_form($form, t('Are you sure you want to delete the preset %preset?', array(
    '%preset' => $preset['presetname'],
  )), 'admin/build/imagecache', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}