function scald_index_rebuild_finished in scald_index 7
Finishes the batch run.
1 string reference to 'scald_index_rebuild_finished'
- scald_index_rebuild in ./
scald_index.module - Rebuilds the entire index using the batch API.
File
- ./
scald_index.module, line 294
Code
function scald_index_rebuild_finished($success, $results, $operations) {
if ($success) {
drupal_set_message(t('Rebuilding index complete.'));
}
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, 'error');
}
}