function _auditfiles_used_not_referenced_batch_display_process_operation 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_referenced_batch_display_process_operation'
- _auditfiles_used_not_referenced_batch_display_get_operations in ./
auditfiles.usednotreferenced.inc - Configures the operations for the batch process.
File
- ./
auditfiles.usednotreferenced.inc, line 349 - Generates report showing files in file_usage, but not referenced by content.
Code
function _auditfiles_used_not_referenced_batch_display_process_operation($file_id, array &$context) {
// Process the current file.
$file = _auditfiles_used_not_referenced_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,
));
}