You are here

function _linkchecker_batch_comments_import_finished in Link checker 7

Same name and namespace in other branches
  1. 6.2 includes/linkchecker.batch.inc \_linkchecker_batch_comments_import_finished()

Output comment batch result messages.

Parameters

bool $success: If scan completed successfully or not.

int $results: Number of comments scanned.

array $operations: Array of functions called.

1 string reference to '_linkchecker_batch_comments_import_finished'
_linkchecker_batch_import_comments in ./linkchecker.batch.inc
Batch: Scan comments for links.

File

./linkchecker.batch.inc, line 106
Batch API callbacks for the linkchecker module.

Code

function _linkchecker_batch_comments_import_finished($success, $results, $operations) {
  if ($success) {
    $message = format_plural(count($results), 'One comment has been scanned.', '@count comments have been scanned.');
  }
  else {
    $message = t('Scanning for links in comments have failed with an error.');
  }
  drupal_set_message($message);
}