You are here

function backup_migrate_ui_destination_delete_file_confirm_submit in Backup and Migrate 6.2

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
  2. 8.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
  3. 5.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
  4. 6.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
  5. 7.3 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()
  6. 7.2 includes/destinations.inc \backup_migrate_ui_destination_delete_file_confirm_submit()

Delete confirmed, perform the delete.

File

includes/destinations.inc, line 435

Code

function backup_migrate_ui_destination_delete_file_confirm_submit($form, &$form_state) {
  if (user_access('delete backup files')) {
    $destination_id = $form_state['values']['destination_id'];
    $file_id = $form_state['values']['file_id'];
    backup_migrate_destination_delete_file($destination_id, $file_id);
    _backup_migrate_message('Database backup file deleted: %file_id', array(
      '%file_id' => $file_id,
    ));
  }
  $form_state['redirect'] = user_access('access backup files') ? BACKUP_MIGRATE_MENU_PATH . "/destination/list/files/" . $destination_id : BACKUP_MIGRATE_MENU_PATH;
}