function _taxonomy_menu_get_item in Taxonomy menu 7
Same name and namespace in other branches
- 8 taxonomy_menu.database.inc \_taxonomy_menu_get_item()
- 6.3 taxonomy_menu.database.inc \_taxonomy_menu_get_item()
- 6.2 taxonomy_menu.database.inc \_taxonomy_menu_get_item()
- 7.2 taxonomy_menu.database.inc \_taxonomy_menu_get_item()
Gets the vocabulary ID and taxonomy term ID for a given menu link ID.
Parameters
int $mlid: Menu link ID.
Return value
array array(vid, tid)
1 call to _taxonomy_menu_get_item()
File
- ./
taxonomy_menu.database.inc, line 218 - Database functions
Code
function _taxonomy_menu_get_item($mlid) {
$result = db_select('taxonomy_menu', 'tm')
->condition('mlid', $mlid, '=')
->fields('tm', array(
'tid',
'vid',
))
->execute();
return $result
->fetch();
}