You are here

function _auditfiles_not_in_database_batch_add_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_add_process_batch()

The batch process for adding the file.

Parameters

string $filename: The full pathname to the file to add to the database.

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_add_process_batch'
_auditfiles_not_in_database_batch_add_create_batch in ./auditfiles.notindatabase.inc
Creates the batch for adding files to the database.

File

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

Code

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

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

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

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