You are here

function _auditfiles_referenced_not_used_batch_display_get_operations in Audit Files 7.4

Same name and namespace in other branches
  1. 7.3 auditfiles.referencednotused.inc \_auditfiles_referenced_not_used_batch_display_get_operations()

Configures the operations for the batch process.

Return value

array The operations to execute.

1 call to _auditfiles_referenced_not_used_batch_display_get_operations()
_auditfiles_referenced_not_used_batch_display_create_batch in ./auditfiles.referencednotused.inc
Prepares the definition for the page display batch.

File

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

Code

function _auditfiles_referenced_not_used_batch_display_get_operations() {
  $operations = array();
  $file_data = _auditfiles_referenced_not_used_get_file_list();
  foreach ($file_data as $reference_id => $row_data) {
    $operations[] = array(
      '_auditfiles_referenced_not_used_batch_display_process_operation',
      array(
        $reference_id,
        $row_data,
      ),
    );
  }
  return $operations;
}