You are here

function textimage_preset_delete_confirm in Textimage 7.2

Same name and namespace in other branches
  1. 5.2 textimage_admin.inc \textimage_preset_delete_confirm()
  2. 5 textimage.module \textimage_preset_delete_confirm()
  3. 6.2 textimage_admin.inc \textimage_preset_delete_confirm()

Todo.

1 string reference to 'textimage_preset_delete_confirm'
textimage_menu in ./textimage.module
Implements hook_menu().

File

./textimage.admin.inc, line 540
Textimage admin page callback

Code

function textimage_preset_delete_confirm($form, &$form_state, $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/config/media/textimage/preset/list', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}