You are here

function _linkchecker_batch_single_comment_import_finished in Link checker 6.2

Same name and namespace in other branches
  1. 7 linkchecker.batch.inc \_linkchecker_batch_single_comment_import_finished()
1 string reference to '_linkchecker_batch_single_comment_import_finished'
_linkchecker_batch_import_single_comment in includes/linkchecker.batch.inc
Recurring scans of a single comment via batch API.

File

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

Code

function _linkchecker_batch_single_comment_import_finished($success, $results, $operations) {
  if ($success) {
    $message = format_plural(count($results), 'Comment @cid has been re-scanned once to collect all links.', 'Comment @cid has been re-scanned @count times to collect all links.', array(
      '@cid' => $results[0],
    ));
  }
  else {
    $message = t('Recurring scanning for links in comment @cid have failed with an error.', array(
      '@cid' => $results[0],
    ));
  }
  drupal_set_message($message);
}