You are here

function _linkchecker_batch_import_comments_op in Link checker 5.2

Batch operation: Load all boxes, 100 by 100.

File

./linkchecker.module, line 638
This module periodically check links in given node types, blocks, cck fields, etc.

Code

function _linkchecker_batch_import_comments_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 comment and scan for links.
    $comment = _linkchecker_comment_load($res['cid']);
    _linkchecker_add_comment_links($comment);
  }
}