You are here

function taxonomy_menu_taxonomy_menu_insert in Taxonomy menu 6.2

Same name and namespace in other branches
  1. 7 taxonomy_menu.module \taxonomy_menu_taxonomy_menu_insert()

Implementation of hook_taxonomy_menu_insert().

Parameters

$item: array with the following key/value pairs: 'tid' => the term id (if 0 then updating the vocab as an item) 'name' => new menu name 'description' => new menu description, used as to build the title attribute 'weight' => new menu weight 'vid' => the new vocabulary's id 'ptid' => the new parent tid 'remove' => if this is set to TRUE then the $item is not added as a menu

Return value

$item

File

./taxonomy_menu.module, line 842
It Generates menu links for all selected taxonomy terms

Code

function taxonomy_menu_taxonomy_menu_insert(&$item) {
  $item = _taxonomy_menu_item($item);
}