You are here

function _auditfiles_referenced_not_used_batch_set_common_values in Audit Files 7.3

Same name and namespace in other branches
  1. 7.4 auditfiles.referencednotused.inc \_auditfiles_referenced_not_used_batch_set_common_values()

Adds vaules to a batch definition that are common to all batches in the file.

Return value

array The beginning of the batch definition.

3 calls to _auditfiles_referenced_not_used_batch_set_common_values()
_auditfiles_referenced_not_used_batch_add_create_batch in ./auditfiles.referencednotused.inc
Creates the batch for adding files to the file_usage table.
_auditfiles_referenced_not_used_batch_delete_create_batch in ./auditfiles.referencednotused.inc
Creates the batch for deleting file references from their content.
_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 196
Generates report showing files referenced by content, but not in file_usage.

Code

function _auditfiles_referenced_not_used_batch_set_common_values() {
  return array(
    'error_message' => t('One or more errors were encountered processing the files.'),
    'file' => drupal_get_path('module', 'auditfiles') . '/auditfiles.referencednotused.inc',
    'finished' => '_auditfiles_referenced_not_used_batch_finish_batch',
    'progress_message' => t('Completed @current of @total operations.'),
  );
}