function _linkchecker_batch_single_block_custom_import_op in Link checker 7
Run single block link extraction.
Parameters
int $bid: Node ID.
array $context: Batch context array.
1 string reference to '_linkchecker_batch_single_block_custom_import_op'
- _linkchecker_batch_import_single_block_custom in ./
linkchecker.batch.inc - Recurring scans of a single block via batch API.
File
- ./
linkchecker.batch.inc, line 337 - Batch API callbacks for the linkchecker module.
Code
function _linkchecker_batch_single_block_custom_import_op($bid, &$context) {
// Load the custom block and scan for links.
$block_custom = linkchecker_block_custom_block_get($bid);
_linkchecker_add_block_custom_links($block_custom, $block_custom->delta, TRUE);
// Store some result for post-processing in the finished callback.
$context['results'][] = $block_custom->delta;
$context['message'] = t('Block: @title', array(
'@title' => $block_custom->info,
));
}