function tft_get_og_tid in Taxonomy File Tree 7.2
Same name and namespace in other branches
- 7 tft.module \tft_get_og_tid()
Parameters
int $nid: The OG nid
Return value
int|NULL The term tid
Deprecated
move this to tft_og
Get the term tid associated with the OG.
3 calls to tft_get_og_tid()
File
- ./
tft.module, line 1373 - Hook implementations and module logic for TFT.
Code
function tft_get_og_tid($nid) {
return db_query("SELECT tid FROM {tft_tid_og_nid} WHERE og_nid = :nid", array(
':nid' => $nid,
))
->fetchField();
}