function _taxonomy_menu_get_tid in Taxonomy menu 7
Same name and namespace in other branches
- 8 taxonomy_menu.database.inc \_taxonomy_menu_get_tid()
- 6.2 taxonomy_menu.database.inc \_taxonomy_menu_get_tid()
- 7.2 taxonomy_menu.database.inc \_taxonomy_menu_get_tid()
Gets tid for a given mlid.
Parameters
int $mlid: Menu link ID.
Return value
int $tid Taxonomy term ID.
File
- ./
taxonomy_menu.database.inc, line 205 - Database functions
Code
function _taxonomy_menu_get_tid($mlid) {
return db_query('SELECT tid FROM {taxonomy_menu} WHERE mlid = :mlid', array(
':mlid' => $mlid,
))
->fetchField();
}