You are here

function textimage_preset_flush_confirm in Textimage 5

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

File

./textimage.module, line 582

Code

function textimage_preset_flush_confirm($preset_id) {
  $preset = _textimage_preset_load($preset_id);
  $form['pid'] = array(
    '#type' => 'value',
    '#value' => $preset_id,
  );
  $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'],
  )), $_GET['destination'] ? $_GET['destination'] : 'admin/settings/textimage/list', t('This action cannot be undone.'), t('Flush Cache'), t('Cancel'));
}