You are here

function imagecache_ui_preset_delete_form in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache_ui.module \imagecache_ui_preset_delete_form()
1 string reference to 'imagecache_ui_preset_delete_form'
imagecache_ui_menu in ./imagecache_ui.module
Implementation of hook_menu().

File

./imagecache_ui.pages.inc, line 42

Code

function imagecache_ui_preset_delete_form($form_state, $preset = array()) {
  if (empty($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'));
}