You are here

function _linkchecker_batch_node_import_op in Link checker 6.2

Same name and namespace in other branches
  1. 5.2 linkchecker.module \_linkchecker_batch_node_import_op()
  2. 7 linkchecker.batch.inc \_linkchecker_batch_node_import_op()

Batch operation: Scan ony by one node for links.

1 string reference to '_linkchecker_batch_node_import_op'
_linkchecker_batch_import_nodes in includes/linkchecker.batch.inc
Batch: Scan nodes for links.

File

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

Code

function _linkchecker_batch_node_import_op($nid, &$context) {

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

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