function imagecache_ui_preset_flush_form in ImageCache 5.2
Same name and namespace in other branches
- 6.2 imagecache_ui.pages.inc \imagecache_ui_preset_flush_form()
1 string reference to 'imagecache_ui_preset_flush_form'
File
- ./
imagecache_ui.module, line 191
Code
function imagecache_ui_preset_flush_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 flush the preset %preset?', array(
'%preset' => $preset['presetname'],
)), 'admin/build/imagecache', t('This action cannot be undone.'), t('Flush'), t('Cancel'));
}