function _taxonomy_menu_get_item in Taxonomy menu 8
Same name and namespace in other branches
- 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()
- 7 taxonomy_menu.database.inc \_taxonomy_menu_get_item()
Get vid, tid for a given mlid
Parameters
$mlid:
Return value
array of vid, tid
File
- ./
taxonomy_menu.database.inc, line 241 - 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();
}