function _linkchecker_batch_import_boxes_op in Link checker 5.2
Same name and namespace in other branches
- 6.2 includes/linkchecker.batch.inc \_linkchecker_batch_import_boxes_op()
Batch operation: Load all boxes, 100 by 100.
1 string reference to '_linkchecker_batch_import_boxes_op'
- _linkchecker_batch_import_boxes in ./
linkchecker.module - Batch: Load all boxes 100 by hundred.
File
- ./
linkchecker.module, line 663 - This module periodically check links in given node types, blocks, cck fields, etc.
Code
function _linkchecker_batch_import_boxes_op($row, $limit) {
// Retrieve the next group of bids.
$result = db_query_range("SELECT bid FROM {boxes} ORDER BY bid ASC", $row, $limit);
while ($res = db_fetch_array($result)) {
// Load the box and scan for links.
$box = block_box_get($res['bid']);
_linkchecker_add_box_links($box, $box['bid']);
}
}