You are here

function _auditfiles_not_in_database_batch_display_process_batch in Audit Files 7.4

The batch process for displaying the files.

Parameters

int $file_id: The ID for the file being processed.

string $date_format: The format to display time/date values in.

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

1 string reference to '_auditfiles_not_in_database_batch_display_process_batch'
_auditfiles_not_in_database_batch_display_get_operations in ./auditfiles.notindatabase.inc
Configures the operations for the batch process.

File

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

Code

function _auditfiles_not_in_database_batch_display_process_batch($file_id, $date_format, array &$context) {

  // Process the current file.
  $file = _auditfiles_not_in_database_get_file_data($file_id, $date_format);
  if (isset($file)) {

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

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