function _taxonomy_menu_get_terms in Taxonomy menu 6.2
Same name and namespace in other branches
- 6.3 taxonomy_menu.database.inc \_taxonomy_menu_get_terms()
- 7 taxonomy_menu.database.inc \_taxonomy_menu_get_terms()
Get all of the tid for a given vid
Parameters
$vid:
Return value
array of $tid
2 calls to _taxonomy_menu_get_terms()
- taxonomy_menu_path_custom_path in taxonomy_menu_path_custom/
taxonomy_menu_path_custom.module - Callback for taxonomy_menu_path
- taxonomy_menu_path_default in ./
taxonomy_menu.module - Callback for hook_taxonomy_menu_path
File
- ./
taxonomy_menu.database.inc, line 115 - Database functions
Code
function _taxonomy_menu_get_terms($vid) {
$output = array();
$result = db_query(db_rewrite_sql('SELECT t.tid FROM {term_data} t WHERE t.vid = %d', 't', 'tid'), $vid);
while ($data = db_fetch_object($result)) {
$output[] = $data->tid;
}
return $output;
}