You are here

function _taxonomy_menu_insert_menu_item in Taxonomy menu 7

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

Inserts a menu item.

Parameters

int $mlid: Menu link ID.

int $tid: Taxonomy term ID.

int $vid: Vocabulary ID.

1 call to _taxonomy_menu_insert_menu_item()
_taxonomy_menu_save in ./taxonomy_menu.module
Adds/Updates a taxonomy menu item.

File

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

Code

function _taxonomy_menu_insert_menu_item($mlid, $tid, $vid) {
  $fields = array(
    'mlid' => $mlid,
    'tid' => $tid,
    'vid' => $vid,
  );
  db_insert('taxonomy_menu')
    ->fields($fields)
    ->execute();
}