You are here

function _auditfiles_referenced_not_used_batch_display_process_operation in Audit Files 7.4

The batch process for displaying the files.

Parameters

string $reference_id: The ID for keeping track of the reference.

array $row_data: The data to use for creating the row.

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_referenced_not_used_batch_display_process_operation'
_auditfiles_referenced_not_used_batch_display_get_operations in ./auditfiles.referencednotused.inc
Configures the operations for the batch process.

File

./auditfiles.referencednotused.inc, line 354
Generates report showing files referenced by content, but not in file_usage.

Code

function _auditfiles_referenced_not_used_batch_display_process_operation($reference_id, array $row_data, array &$context) {

  // Process the current file.
  $file = _auditfiles_referenced_not_used_get_file_data($reference_id, $row_data);

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

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