You are here

function advanced_forum_statistics_topics in Advanced Forum 6

Same name and namespace in other branches
  1. 5 advanced_forum.module \advanced_forum_statistics_topics()
  2. 6.2 advanced_forum.module \advanced_forum_statistics_topics()
  3. 7.2 advanced_forum.module \advanced_forum_statistics_topics()

Count total amount of forum threads.

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

File

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

Code

function advanced_forum_statistics_topics() {
  return db_result(db_query('SELECT COUNT(DISTINCT(nid)) FROM {forum}'));
}