You are here

function tft_og_get_og_tid in Taxonomy File Tree 7.2

Get the term tid associated with the OG.

Parameters

int $nid:

Return value

int|NULL

3 calls to tft_og_get_og_tid()
tft_og_archive_rules_create_og_archive_folder in modules/tft_og_archive/tft_og_archive.module
Action callback: add an archive folder for newly created groups.
tft_og_block_view_alter in modules/tft_og/tft_og.module
Implements hook_block_view_alter().
tft_og_form_alter in modules/tft_og/tft_og.module
Implements hook_form_alter()

File

modules/tft_og/tft_og.module, line 343
Hook implementations for TFT OG.

Code

function tft_og_get_og_tid($nid) {
  return db_query("SELECT tid FROM {tft_tid_og_nid} WHERE og_nid = :nid", array(
    ':nid' => $nid,
  ))
    ->fetchField();
}