You are here

function _linkchecker_batch_import_boxes in Link checker 5.2

Same name and namespace in other branches
  1. 6.2 includes/linkchecker.batch.inc \_linkchecker_batch_import_boxes()

Batch: Load all boxes 100 by hundred.

2 calls to _linkchecker_batch_import_boxes()
linkchecker_admin_settings_form_submit in ./linkchecker.module
_linkchecker_batch_import in ./linkchecker.module
Trigger batch import job.

File

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

Code

function _linkchecker_batch_import_boxes() {

  // Block import.
  $rows = db_result(db_query('SELECT COUNT(DISTINCT bid) FROM {boxes}'));
  for ($row = 0; $row < $rows; $row = $row + LINKCHECKER_SCAN_MAX_LINKS_PER_RUN) {
    job_queue_add('_linkchecker_batch_import_boxes_op', 'Scan boxes from row ' . $row . ' to ' . ($row + LINKCHECKER_SCAN_MAX_LINKS_PER_RUN) . '.', array(
      $row,
      LINKCHECKER_SCAN_MAX_LINKS_PER_RUN,
    ), '', TRUE);
  }
}