You are here

function _linkchecker_batch_import_boxes_op in Link checker 6.2

Same name and namespace in other branches
  1. 5.2 linkchecker.module \_linkchecker_batch_import_boxes_op()

Batch operation: Scan ony by one block for links.

1 string reference to '_linkchecker_batch_import_boxes_op'
_linkchecker_batch_import_boxes in includes/linkchecker.batch.inc
Batch: Scan blocks for links.

File

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

Code

function _linkchecker_batch_import_boxes_op($bid, &$context) {

  // Load the box and scan for links.
  $box = block_box_get($bid);
  _linkchecker_add_box_links($box, $box['bid']);

  // Store some result for post-processing in the finished callback.
  $context['results'][] = $box['bid'];
  $context['message'] = t('Block: @title', array(
    '@title' => $box['info'],
  ));
}