function _taxonomy_menu_get_tids in Taxonomy menu 7.2
Same name and namespace in other branches
- 8 taxonomy_menu.database.inc \_taxonomy_menu_get_tids()
Get all of the tid for a given vocabulary id. Used to build path (tid1+tid2+...)
Parameters
$vid: The vocabulary id.
Return value
A list of terms id for this vocabulary.
2 calls to _taxonomy_menu_get_tids()
- taxonomy_menu_path_custom in taxonomy_menu_custom_paths/
taxonomy_menu_custom_paths.module - Callback for hook_taxonomy_menu_path.
- taxonomy_menu_path_multiple_terms in ./
taxonomy_menu.module - Callback for hook_taxonomy_menu_path.
File
- ./
taxonomy_menu.database.inc, line 185 - Database functions.
Code
function _taxonomy_menu_get_tids($vid) {
$result = db_select('taxonomy_term_data', 'td')
->condition('vid', $vid)
->fields('td', array(
'tid',
))
->execute();
return $result
->fetchCol();
}