function devel_generate_batch_finished
Same name in other branches
- 6.x-1.x devel_generate_batch.inc \devel_generate_batch_finished()
- 8.x-1.x devel_generate/devel_generate.batch.inc \devel_generate_batch_finished()
- 4.x devel_generate/devel_generate.batch.inc \devel_generate_batch_finished()
- 5.x devel_generate/devel_generate.batch.inc \devel_generate_batch_finished()
Display a message when a batch is complete.
1 string reference to 'devel_generate_batch_finished'
- devel_generate_batch_content in devel_generate/
devel_generate_batch.inc - Form constructor generating in batches.
File
-
devel_generate/
devel_generate_batch.inc, line 60
Code
function devel_generate_batch_finished($success, $results, $operations) {
if ($success) {
$message = t('Finished @num_nids nodes created successfully.', array(
'@num_nids' => $results['num_nids'],
));
}
else {
$message = t('Finished with an error.');
}
drupal_set_message($message);
}