You are here

function _taxonomy_menu_get_tid in Taxonomy menu 7.2

Same name and namespace in other branches
  1. 8 taxonomy_menu.database.inc \_taxonomy_menu_get_tid()
  2. 6.2 taxonomy_menu.database.inc \_taxonomy_menu_get_tid()
  3. 7 taxonomy_menu.database.inc \_taxonomy_menu_get_tid()

Get tid for a given mlid

Parameters

$mlid:

Return value

$tid

File

./taxonomy_menu.database.inc, line 225
Database functions.

Code

function _taxonomy_menu_get_tid($mlid) {
  $where = array(
    ':mlid' => $mlid,
  );
  return db_query('SELECT tid FROM {taxonomy_menu} WHERE mlid = :mlid', $where)
    ->fetchField();
}