function _linkchecker_batch_single_node_import_op in Link checker 7
Same name and namespace in other branches
- 6.2 includes/linkchecker.batch.inc \_linkchecker_batch_single_node_import_op()
Run single node link extraction.
Parameters
int $nid: Node ID.
array $context: Batch context array.
1 string reference to '_linkchecker_batch_single_node_import_op'
- _linkchecker_batch_import_single_node in ./
linkchecker.batch.inc - Recurring scans of a single node via batch API.
File
- ./
linkchecker.batch.inc, line 206 - 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('Content: @title', array(
'@title' => $node->title,
));
}