function devel_generate_batch_finished in Devel 7
Same name and namespace in other branches
- 8.3 devel_generate/devel_generate.batch.inc \devel_generate_batch_finished()
- 8 devel_generate/devel_generate.batch.inc \devel_generate_batch_finished()
- 8.2 devel_generate/devel_generate.batch.inc \devel_generate_batch_finished()
- 6 devel_generate_batch.inc \devel_generate_batch_finished()
- 4.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);
}