You are here

function _auditfiles_not_in_database_batch_delete_process_batch in Audit Files 7.3

Same name and namespace in other branches
  1. 7.4 auditfiles.notindatabase.inc \_auditfiles_not_in_database_batch_delete_process_batch()

The batch process for deleting the file.

Parameters

string $filename: The filename to delete.

array $context: Used by the Batch API to keep track of data and pass it from one operation to the next.

1 string reference to '_auditfiles_not_in_database_batch_delete_process_batch'
_auditfiles_not_in_database_batch_delete_create_batch in ./auditfiles.notindatabase.inc
Creates the batch for deleting files from the server.

File

./auditfiles.notindatabase.inc, line 649
Generates a report showing files on the server, but not in the database.

Code

function _auditfiles_not_in_database_batch_delete_process_batch($filename, array &$context) {

  // Process the current file.
  _auditfiles_not_in_database_batch_delete_process_file($filename);

  // The contents of 'results' are available as $results in the 'finished'
  // function.
  $context['results'][] = check_plain($filename);

  // Set a progress message.
  $context['message'] = t('Processed %filename.', array(
    '%filename' => $filename,
  ));
}