function _linkchecker_batch_import_block_custom_op in Link checker 7
Batch operation: Scan one by one block for links.
1 string reference to '_linkchecker_batch_import_block_custom_op'
- _linkchecker_batch_import_block_custom in ./
linkchecker.batch.inc - Batch: Scan blocks for links.
File
- ./
linkchecker.batch.inc, line 140 - Batch API callbacks for the linkchecker module.
Code
function _linkchecker_batch_import_block_custom_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);
// 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,
));
}