function _hashtags_index_batch_finished in Hashtags 7
Hashtags index import, batch finished callback
Parameters
boolean $success :
array $results :
array $operations :
1 string reference to '_hashtags_index_batch_finished'
- hashtags_index_import in ./
hashtags.module - Import hashtags data from node body fields to 'hashtags_index' table
File
- ./
hashtags.module, line 915
Code
function _hashtags_index_batch_finished($success, $results, $operations) {
if ($success) {
drupal_set_message('Hashtags data have been imported to Hashtags index');
}
else {
$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');
}
}