You are here

function _linkchecker_batch_single_node_import_finished in Link checker 7

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

Output single node batch result messages.

Parameters

bool $success: If scan completed successfully or not.

int $results: How often the node has been scanned.

array $operations: Array of functions called.

1 string reference to '_linkchecker_batch_single_node_import_finished'
_linkchecker_batch_import_single_node in ./linkchecker.batch.inc
Recurring scans of a single node via batch API.

File

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

Code

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