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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | hidden-1637560-6122514.patch | 539 bytes | techgirlgeek |
Comments
Comment #1
techgirlgeek commentedPatch attached.
Comment #2
techgirlgeek commentedComment #3
cedarm commentedWe're using hook_taxonomy_menu_insert() and hook_taxonomy_menu_update().
Comment #5
techgirlgeek commented#2: hidden-1637560-6122514.patch queued for re-testing.
Comment #7
sreynen commentedLet's try this on dev.
Comment #8
sreynen commented#2: hidden-1637560-6122514.patch queued for re-testing.
Comment #9
johnvComment #10
dstolThe Drupal 6 version is no longer supported