You are here

function _taxonomy_menu_get_item in Taxonomy menu 7.2

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

Get vid, tid for a given mlid

Parameters

$mlid:

Return value

array of vid, tid

1 call to _taxonomy_menu_get_item()
taxonomy_menu_translated_menu_link_alter in ./taxonomy_menu.module
Implements hook_translated_menu_link_alter().

File

./taxonomy_menu.database.inc, line 238
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();
}