function textimage_preset_flush_confirm in Textimage 5.2
Same name and namespace in other branches
- 5 textimage.module \textimage_preset_flush_confirm()
- 6.2 textimage_admin.inc \textimage_preset_flush_confirm()
- 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_admin.inc, line 623
Code
function textimage_preset_flush_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 flush the image cache for preset %name?', array(
'%name' => $preset['name'],
)), isset($_GET['destination']) ? $_GET['destination'] : 'admin/build/textimage/preset/list', t('This action cannot be undone.'), t('Flush Cache'), t('Cancel'));
}