function file_entity_generate_file_batch_finished in File Entity (fieldable files) 7.3
Same name and namespace in other branches
- 7.2 file_entity.devel_generate.inc \file_entity_generate_file_batch_finished()
When the batch is finished set a status message.
1 string reference to 'file_entity_generate_file_batch_finished'
- file_entity_generate_file_batch_info in ./
file_entity.devel_generate.inc - Implements hook_batch_info().
File
- ./
file_entity.devel_generate.inc, line 137 - Devel generate integration for the File Entity module.
Code
function file_entity_generate_file_batch_finished($success, $results, $operations) {
if ($success) {
drupal_set_message(format_plural(count($results), 'One file created.', '@count files created.'));
}
else {
// An error occurred.
// $operations contains the operations that remained unprocessed.
$error_operation = reset($operations);
drupal_set_message(t('An error occurred while processing @operation with arguments : @args', array(
'@operation' => $error_operation[0],
'@args' => print_r($error_operation[0], TRUE),
)));
}
}