1 backup.inc backup_batch_finished($success, array $results, array $operations)

Finishes the backup process and stores the results for eventual display.

Parameters

bool $success: Indicate that the batch API tasks were all completed successfully.

array $results: An array of all the results that were updated in update_do_one().

array $operations: A list of all the operations that had not been completed by the batch API.

See also

backup_batch()

File

core/includes/backup.inc, line 347
Contains functionality related to creating and restoring site backups.

Code

function backup_batch_finished($success, array $results, array $operations) {
  if ($success) {
    backdrop_set_message(t('Backup created successfully.'));
  }
  else {
    backdrop_set_message(t('Backup failed.'), 'error');
  }
}