You are here

function tft_get_archive_tid in Taxonomy File Tree 7.2

Same name and namespace in other branches
  1. 7 tft.module \tft_get_archive_tid()
4 calls to tft_get_archive_tid()
tft_archive_folder_batch_process in ./tft.module
tft_is_term_archived in ./tft.module
tft_restore_archived_element in ./tft.module
_tft_manage_folders_form in includes/tft.pages.inc
Form helper. Flattens the terms tree and creates the form elements.

File

./tft.module, line 1247
Hook implementations and module logic for TFT.

Code

function tft_get_archive_tid($og_tid) {
  return db_query("SELECT td.tid FROM {taxonomy_term_data} td\n                    LEFT JOIN {taxonomy_term_hierarchy} th ON th.tid = td.tid\n                   WHERE th.parent = :tid AND td.name = :name", array(
    ':name' => t('Archives'),
    ':tid' => $og_tid,
  ))
    ->fetchField();
}