forum_term_load
- Versions
- 6
forum_term_load($tid)
Fetch a forum term.
Parameters
$tid The ID of the term which should be loaded.
Return value
An associative array containing the term data or FALSE if the term cannot be loaded, or is not part of the forum vocabulary.
Code
modules/forum/forum.module, line 75
<?php
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 AND t.vid = %d', 't', 'tid'), $tid, variable_get('forum_nav_vocabulary', ''));
return db_fetch_array($result);
}
?>Login or register to post comments 