We came across a need to be able to hide/disable a menu item programatically utilizing the module's hook.
During developing our function we realized the the taxonomy menu hard codes hidden = 0.
By setting the $link['hidden'] to whatever the $item['hidden'] has been set to we could easily write code to disable the menu item.

CommentFileSizeAuthor
#2 hidden-1637560-6122514.patch539 bytestechgirlgeek

Comments

techgirlgeek’s picture

Patch attached.

techgirlgeek’s picture

StatusFileSize
new539 bytes
cedarm’s picture

Status: Active » Needs review

We're using hook_taxonomy_menu_insert() and hook_taxonomy_menu_update().

Status: Needs review » Needs work

The last submitted patch, hidden-1637560-6122514.patch, failed testing.

techgirlgeek’s picture

Status: Needs work » Needs review

#2: hidden-1637560-6122514.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, hidden-1637560-6122514.patch, failed testing.

sreynen’s picture

Version: 6.x-2.9 » 6.x-2.x-dev
Status: Needs work » Needs review

Let's try this on dev.

sreynen’s picture

#2: hidden-1637560-6122514.patch queued for re-testing.

johnv’s picture

Component: Code » Sync
dstol’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

The Drupal 6 version is no longer supported