You are here

function filemime_apply_finished in File MIME 7

Batch finish callback.

1 string reference to 'filemime_apply_finished'
filemime_apply_submit in ./filemime.admin.inc
Retroactively applies MIME type mapping to all previously uploaded files.

File

./filemime.admin.inc, line 102
Admin page callbacks for File MIME module.

Code

function filemime_apply_finished($success, $results, $operations) {
  $variables = array(
    '@processed' => $results['processed'],
    '@updated' => $results['updated'],
  );
  if ($success) {
    drupal_set_message(t('Processed @processed files and updated @updated files.', $variables));
  }
  else {
    drupal_set_message(t('An error occurred after processing @processed files and updating @updated files.', $variables), 'warning');
  }
}