function _linkchecker_batch_single_comment_import_op in Link checker 6.2
Same name and namespace in other branches
- 7 linkchecker.batch.inc \_linkchecker_batch_single_comment_import_op()
1 string reference to '_linkchecker_batch_single_comment_import_op'
- _linkchecker_batch_import_single_comment in includes/
linkchecker.batch.inc - Recurring scans of a single comment via batch API.
File
- includes/
linkchecker.batch.inc, line 216 - Batch API callbacks for the linkchecker module.
Code
function _linkchecker_batch_single_comment_import_op($cid, &$context) {
$comment = _linkchecker_comment_load($cid);
_linkchecker_add_comment_links($comment, TRUE);
// Store results for post-processing in the finished callback.
$context['results'][] = $comment['cid'];
$context['message'] = t('Comment: @title', array(
'@title' => $comment['subject'],
));
}