You are here

function textimage_preset_delete_confirm in Textimage 5.2

Same name and namespace in other branches
  1. 5 textimage.module \textimage_preset_delete_confirm()
  2. 6.2 textimage_admin.inc \textimage_preset_delete_confirm()
  3. 7.2 textimage.admin.inc \textimage_preset_delete_confirm()
1 string reference to 'textimage_preset_delete_confirm'
textimage_menu in ./textimage.module
Implementation of hook_menu().

File

./textimage_admin.inc, line 602

Code

function textimage_preset_delete_confirm($pid) {
  $preset = _textimage_preset_load($pid);
  $form['pid'] = array(
    '#type' => 'value',
    '#value' => $preset['pid'],
  );
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $preset['name'],
  );
  return confirm_form($form, t('Are you sure you want to delete the preset %name?', array(
    '%name' => $preset['name'],
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/textimage/preset/list', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}