function community_tags_batch_finished in Community Tags 6.2
Same name and namespace in other branches
- 6 community_tags.batch.inc \community_tags_batch_finished()
- 7 community_tags.batch.inc \community_tags_batch_finished()
Batch 'finished' callback
1 string reference to 'community_tags_batch_finished'
- community_tags_delete_all_form_submit in ./
community_tags.admin.inc - Submit handler for community_tags_delete_all_form().
File
- ./
community_tags.batch.inc, line 65 - community_tags.batch.inc
Code
function community_tags_batch_finished($success, $results, $operations) {
if ($success) {
// Here we do something meaningful with the results.
$message = count($results) . ' processed.';
$message .= theme('item_list', $results);
}
else {
// An error occurred.
// $operations contains the operations that remained unprocessed.
$error_operation = reset($operations);
$message = t('An error occurred while processing %error_operation with arguments: @arguments', array(
'%error_operation' => $error_operation[0],
'@arguments' => print_r($error_operation[1], TRUE),
));
}
drupal_set_message($message);
}