You are here

function textimage_preset_flush_confirm in Textimage 7.2

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

Todo.

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

File

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

Code

function textimage_preset_flush_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 flush the image cache for preset %name?', array(
    '%name' => $preset['name'],
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/config/media/textimage/preset/list', t('This action cannot be undone.'), t('Flush Cache'), t('Cancel'));
}