You are here

function _file_mass_update_batch_finished in File admin 7

File Mass Update Batch 'finished' callback.

1 string reference to '_file_mass_update_batch_finished'
file_admin_mass_update in ./file_admin.module
Make mass update of files, changing all files in the $files array to update them with the field values in $updates.

File

./file_admin.module, line 535
Enhances file administration by adding published, promote, and sticky fields.

Code

function _file_mass_update_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The update has been performed.'));
  }
  else {
    drupal_set_message(t('An error occurred and processing did not complete.'), 'error');
    $message = format_plural(count($results), '1 item successfully processed:', '@count items successfully processed:');
    $message .= theme('item_list', array(
      'items' => $results,
    ));
    drupal_set_message($message);
  }
}