You are here

function taxonomy_menu_taxonomy_menu_insert in Taxonomy menu 7

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

Implements hook_taxonomy_menu_insert().

Parameters

array $item: Taxonomy menu 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 for 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

array $item Taxonomy menu item.

File

./taxonomy_menu.module, line 1040
Adds links to taxonomy terms into a menu.

Code

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