You are here

function advanced_forum_statistics_comments in Advanced Forum 6

Same name and namespace in other branches
  1. 5 advanced_forum.module \advanced_forum_statistics_comments()

Count total amount of comments on forum threads.

1 call to advanced_forum_statistics_comments()
advanced_forum_preprocess_advf_forum_statistics in ./advanced_forum.module
Preprocesses template variables for the forum statistics template.

File

./advanced_forum.module, line 1771
Enables the look and feel of other popular forum software.

Code

function advanced_forum_statistics_comments() {
  return db_result(db_query('SELECT COUNT(cid) FROM {comments} c INNER JOIN {forum} f ON (f.nid = c.nid)'));
}