Index: modules/forum/forum.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum/forum.module,v
retrieving revision 1.414
diff -u -p -r1.414 forum.module
--- modules/forum/forum.module	26 Aug 2007 07:46:11 -0000	1.414
+++ modules/forum/forum.module	29 Aug 2007 17:39:17 -0000
@@ -61,6 +61,20 @@ function forum_theme() {
 }
 
 /**
+ * Fetch a forum term.
+ *
+ * @param $tid
+ *   The ID of the term which should be loaded.
+ *
+ * @return
+ *   An associative array containing the term data or FALSE if the term cannot be loaded.
+ */
+function forum_term_load($tid) {
+  $result = db_query(db_rewrite_sql('SELECT t.tid, t.vid, t.name, t.description, t.weight FROM {term_data} t WHERE t.tid = %d', 't', 'tid'), $tid);
+  return db_fetch_array($result);
+}
+
+/**
  * Implementation of hook_menu().
  */
 function forum_menu() {
