You are here

function imagecache_ui_preset_flush_form in ImageCache 6.2

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

File

./imagecache_ui.pages.inc, line 69

Code

function imagecache_ui_preset_flush_form(&$form_state, $preset = array()) {
  if (empty($preset)) {
    drupal_set_message(t('The specified preset was not found'), 'error');
    $form_state['redirect'] = 'admin/build/imagecache';
  }
  $form = array();
  $form['presetid'] = array(
    '#type' => 'value',
    '#value' => $preset['presetid'],
  );
  return confirm_form($form, t('Are you sure you want to flush the preset %preset?', array(
    '%preset' => $preset['presetname'],
  )), 'admin/build/imagecache', t('This action cannot be undone.'), t('Flush'), t('Cancel'));
}