You are here

function _linkchecker_batch_single_node_import_op in Link checker 6.2

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

File

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

Code

function _linkchecker_batch_single_node_import_op($nid, &$context) {

  // Load the node and scan for links.
  $node = node_load($nid, NULL, TRUE);
  _linkchecker_add_node_links($node, TRUE);

  // Store results for post-processing in the finished callback.
  $context['results'][] = $node->nid;
  $context['message'] = t('Node: @title', array(
    '@title' => $node->title,
  ));
}