function backup_migrate_ui_destination_delete_file_confirm in Backup and Migrate 6.2
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm()
- 8.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm()
- 5.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm()
- 6.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm()
- 7.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm()
- 7.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm()
Ask confirmation for file deletion.
1 string reference to 'backup_migrate_ui_destination_delete_file_confirm'
- backup_migrate_ui_destination_delete_file in includes/
destinations.inc - Menu callback to delete a file from a destination.
File
- includes/
destinations.inc, line 426
Code
function backup_migrate_ui_destination_delete_file_confirm(&$form_state, $destination_id, $file_id) {
$form['destination_id'] = array(
'#type' => 'value',
'#value' => $destination_id,
);
$form['file_id'] = array(
'#type' => 'value',
'#value' => $file_id,
);
return confirm_form($form, t('Are you sure you want to delete the backup file?'), BACKUP_MIGRATE_MENU_PATH . '/destination/list/files/' . $destination_id, t('Are you sure you want to delete the backup file %file_id? <strong>This action cannot be undone.</strong>', array(
'%file_id' => $file_id,
)), t('Delete'), t('Cancel'));
}