function imagecache_ui_action_delete_form in ImageCache 5.2
Same name and namespace in other branches
- 6.2 imagecache_ui.pages.inc \imagecache_ui_action_delete_form()
1 string reference to 'imagecache_ui_action_delete_form'
File
- ./
imagecache_ui.module, line 453
Code
function imagecache_ui_action_delete_form($presetid, $actionid) {
if (!($action = imagecache_action($actionid))) {
drupal_set_message('Unknown Action.' . $actionid, 'error');
drupal_goto('admin/build/imagecache');
}
if (!($preset = imagecache_preset($action['presetid']))) {
drupal_set_message('Unknown Preset.');
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'));
}