function _linkchecker_batch_block_custom_import_finished in Link checker 7
Output block batch result messages.
Parameters
bool $success: If scan completed successfully or not.
int $results: Number of blocks scanned.
array $operations: Array of functions called.
1 string reference to '_linkchecker_batch_block_custom_import_finished'
- _linkchecker_batch_import_block_custom in ./
linkchecker.batch.inc - Batch: Scan blocks for links.
File
- ./
linkchecker.batch.inc, line 160 - Batch API callbacks for the linkchecker module.
Code
function _linkchecker_batch_block_custom_import_finished($success, $results, $operations) {
if ($success) {
$message = format_plural(count($results), 'One block has been scanned.', '@count blocks have been scanned.');
}
else {
$message = t('Scanning for links in blocks have failed with an error.');
}
drupal_set_message($message);
}