Commit 94c1729e authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#161107 by fwalch and bragon: actually implement the missing forum_term_load...

#161107 by fwalch and bragon: actually implement the missing forum_term_load to work behind the %forum_term menu item resolving calls
parent 48002ab0
......@@ -60,6 +60,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, or is not part of the forum vocabulary.
function forum_term_load($tid) {
$result = db_query(db_rewrite_sql('SELECT t.tid, t.vid,, t.description, t.weight FROM {term_data} t WHERE t.tid = %d AND t.vid = %d', 't', 'tid'), $tid, variable_get('forum_nav_vocabulary', ''));
return db_fetch_array($result);
* Implementation of hook_menu().
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment