function demo_delete_confirm in Demonstration site (Sandbox / Snapshot) 5
Same name and namespace in other branches
- 6 demo.admin.inc \demo_delete_confirm()
- 7 demo.admin.inc \demo_delete_confirm()
1 string reference to 'demo_delete_confirm'
- demo_menu in ./
demo.module - Implementation of hook_menu().
File
- ./
demo.admin.inc, line 107 - Demonstration Site administrative pages
Code
function demo_delete_confirm($filename = '') {
$fileconfig = demo_get_fileconfig($filename);
if (!file_exists($fileconfig['infofile'])) {
return drupal_access_denied();
}
$form['filename'] = array(
'#type' => 'value',
'#value' => $filename,
);
return confirm_form($form, t('Are you sure you want to delete the snapshot %title?', array(
'%title' => $filename,
)), 'admin/build/demo/manage', t('This action cannot be undone.'), t('Delete'));
}