function _votingapi_results_rebuild_finished in Voting API 7.2
Batch API callback for finished recalculation batch operations.
1 string reference to '_votingapi_results_rebuild_finished'
- votingapi_rebuild_form_submit in ./
votingapi.admin.inc - Submit handler for votingapi_rebuild_form.
File
- ./
votingapi.admin.inc, line 246 - Configuration forms and helper functions for VotingAPI module.
Code
function _votingapi_results_rebuild_finished($success, $results, $operations) {
if ($success) {
$message = format_plural($results['count'], 'One content item was recalculated.', '@count content items were recalculated');
}
else {
$message = t('The voting results rebuild process encountered an error.');
}
drupal_set_message($message);
}