comment_node_update_index($node)Implements hook_node_update_index().
modules/comment/comment.module, line 1258
<?php
function comment_node_update_index($node) {
$mode = variable_get('comment_default_mode_' . $node->type, COMMENT_MODE_THREADED);
$comments_per_page = variable_get('comment_default_per_page_' . $node->type, 50);
if ($node->comment && $cids = comment_get_thread($node, $mode, $comments_per_page)) {
$comments = comment_load_multiple($cids);
comment_prepare_thread($comments);
$build = comment_view_multiple($comments, $node);
}
return drupal_render($build);
}
?>