function tft_get_og_tid in Taxonomy File Tree 7
Same name and namespace in other branches
- 7.2 tft.module \tft_get_og_tid()
Get the term tid associated with the OG.
Parameters
int $nid: The OG nid
Return value
int|NULL The term tid
7 calls to tft_get_og_tid()
- tft_archive_file_form_submit in ./
tft.admin.inc - Submission callback
- tft_archive_folder_batch_process in ./
tft.module - Processes the batch logic.
- tft_archive_term_form_submit in ./
tft.admin.inc - Submission callback
- tft_block_view in ./
tft.module - tft_form_alter in ./
tft.module - Implementation of hook_form_alter()
File
- ./
tft.module, line 1304 - Module hooks.
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();
}