You are here

function advanced_forum_statistics_topics in Advanced Forum 6.2

Same name and namespace in other branches
  1. 5 advanced_forum.module \advanced_forum_statistics_topics()
  2. 6 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_advanced_forum_statistics in includes/theme.inc
Preprocesses template variables for the forum statistics template.

File

./advanced_forum.module, line 724
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}'));
}