You are here

function _auditfiles_managed_not_used_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_managed_not_used_batch_display_process_batch'
_auditfiles_managed_not_used_batch_display_get_operations in ./auditfiles.managednotused.inc
Configures the operations for the batch process.

File

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

Code

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

  // Process the current file.
  $file = _auditfiles_managed_not_used_get_file_data($file_id, $date_format);

  // 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'],
  ));
}