You are here

function taxonomy_menu_taxonomy_menu_delete in Taxonomy menu 7

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

Implements hook_taxonomy_menu_delete().

Parameters

array $item: Taxonomy menu item array, containing the following key/value pairs: 'vid': Vocabulary ID. 'tid': Taxonomy term ID. 'mlid': Menu link ID.

File

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

Code

function taxonomy_menu_taxonomy_menu_delete(&$item) {
  menu_link_delete($item['mlid']);
  _taxonomy_menu_delete_item($item['vid'], $item['tid']);
  unset($item['mlid']);
}