You are here

function _linkchecker_batch_comments_import_op in Link checker 6.2

Same name and namespace in other branches
  1. 5.2 linkchecker.module \_linkchecker_batch_comments_import_op()
  2. 7 linkchecker.batch.inc \_linkchecker_batch_comments_import_op()

Batch operation: Scan ony by one comment for links.

1 string reference to '_linkchecker_batch_comments_import_op'
_linkchecker_batch_import_comments in includes/linkchecker.batch.inc
Batch: Scan comments for links.

File

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

Code

function _linkchecker_batch_comments_import_op($cid, &$context) {

  // Load the comment and scan for links.
  $comment = _linkchecker_comment_load($cid);
  _linkchecker_add_comment_links($comment);

  // Store results for post-processing in the finished callback.
  $context['results'][] = $comment['cid'];
  $context['message'] = t('Comment: @title', array(
    '@title' => $comment['subject'],
  ));
}