You are here

function imagecache_ui_action_delete_form in ImageCache 6.2

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

File

./imagecache_ui.pages.inc, line 426

Code

function imagecache_ui_action_delete_form($form_state, $preset = array(), $action = array()) {
  if (empty($action)) {
    drupal_set_message(t('Unknown Action.'), 'error');
    drupal_goto('admin/build/imagecache');
  }
  if (empty($preset)) {
    drupal_set_message(t('Unknown Preset.'), 'error');
    drupal_goto('admin/build/imagecache');
  }
  $form = array();
  $form['actionid'] = array(
    '#type' => 'value',
    '#value' => $action['actionid'],
  );
  return confirm_form($form, t('Are you sure you want to delete the !action action from preset !preset?', array(
    '!preset' => $preset['presetname'],
    '!action' => $action['name'],
  )), 'admin/build/imagecache', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}