You are here

function _auditfiles_used_not_managed_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.

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_used_not_managed_batch_display_process_batch'
_auditfiles_used_not_managed_batch_display_get_operations in ./auditfiles.usednotmanaged.inc
Configures the operations for the batch process.

File

./auditfiles.usednotmanaged.inc, line 344
Generates a report showing files in file_usage, but not in file_managed.

Code

function _auditfiles_used_not_managed_batch_display_process_batch($file_id, array &$context) {

  // Process the current file.
  $file = _auditfiles_used_not_managed_get_file_data($file_id);

  // 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 file ID %file_id.', array(
    '%file_id' => $file_id,
  ));
}