function _auditfiles_not_on_server_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_on_server_batch_display_process_batch'
- _auditfiles_not_on_server_batch_display_get_operations in ./
auditfiles.notonserver.inc - Configures the operations for the batch process.
File
- ./
auditfiles.notonserver.inc, line 352 - Generates a report showing files in the database, but not on the server.
Code
function _auditfiles_not_on_server_batch_display_process_batch($file_id, $date_format, array &$context) {
// Process the current file.
$file = _auditfiles_not_on_server_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'],
));
}