Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function comment_update_index

Implements hook_update_index().

File

modules/comment/comment.module, line 1382

Code

function comment_update_index () {
 // Store the maximum possible comments per thread (used for ranking by reply count)
 variable_set ('node_cron_comments_scale', 1.0 / max (1, db_query ('SELECT MAX(comment_count) FROM {node_comment_statistics}')->fetchField ()));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.