function _linkchecker_batch_node_import_op in Link checker 7
Same name and namespace in other branches
- 5.2 linkchecker.module \_linkchecker_batch_node_import_op()
- 6.2 includes/linkchecker.batch.inc \_linkchecker_batch_node_import_op()
Batch operation: Scan one by one node for links.
1 string reference to '_linkchecker_batch_node_import_op'
- _linkchecker_batch_import_nodes in ./
linkchecker.batch.inc - Batch: Scan nodes for links.
File
- ./
linkchecker.batch.inc, line 32 - 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('Content: @title', array(
'@title' => $node->title,
));
}