function themekey_taxonomy_tid2vid in ThemeKey 6
Same name and namespace in other branches
- 6.4 modules/themekey.taxonomy.inc \themekey_taxonomy_tid2vid()
- 6.2 modules/themekey.taxonomy.inc \themekey_taxonomy_tid2vid()
- 6.3 modules/themekey.taxonomy.inc \themekey_taxonomy_tid2vid()
- 7.3 modules/themekey.taxonomy.inc \themekey_taxonomy_tid2vid()
- 7 modules/themekey.taxonomy.inc \themekey_taxonomy_tid2vid()
- 7.2 modules/themekey.taxonomy.inc \themekey_taxonomy_tid2vid()
1 string reference to 'themekey_taxonomy_tid2vid'
File
- modules/themekey.taxonomy.inc, line 58 
Code
function themekey_taxonomy_tid2vid($tids) {
  $vid = array();
  $tids = is_array($tids) ? $tids : array(
    $tids,
  );
  foreach ($tids as $tid) {
    $vid[] = db_result(db_query('SELECT vid FROM {term_data} WHERE tid = %d', $tid));
  }
  return count($vid) ? $vid : FALSE;
}