You are here

function tft_get_og_tid in Taxonomy File Tree 7.2

Same name and namespace in other branches
  1. 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()
tft_archive_folder_batch_process in ./tft.module
tft_is_term_archived in ./tft.module
tft_restore_archived_element in ./tft.module

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();
}