function _taxonomy_menu_insert_link_items in Taxonomy menu 6.2
Same name and namespace in other branches
- 7 taxonomy_menu.module \_taxonomy_menu_insert_link_items()
Creates new link items for the vocabulary
Parameters
$vid:
1 call to _taxonomy_menu_insert_link_items()
- _taxonomy_menu_rebuild in ./
taxonomy_menu.module - rebuilds a menu
File
- ./
taxonomy_menu.module, line 238 - It Generates menu links for all selected taxonomy terms
Code
function _taxonomy_menu_insert_link_items($vid) {
$menu_name = variable_get('taxonomy_menu_vocab_menu_' . $vid, FALSE);
// check to see if we should had a vocab item
if (variable_get('taxonomy_menu_voc_item_' . $vid, FALSE)) {
$args = array(
'vid' => $vid,
'menu_name' => $menu_name,
);
$mlid = taxonomy_menu_handler('insert', $args);
}
// // let batch api take care of inserting the menu items
_taxonomy_menu_insert_link_items_batch($vid);
}