Hidden menu items are still rendered

ztyx - May 17, 2008 - 05:04
Project:Artists C01
Version:6.x-1.1
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:needs review
Description

(At least) when using suckerfish, menu items that are marked as hidden are still shown.

This is due to the fact that menu_tree_all_data(...) is called (in template.php:43) which does not filter out hidden menu items.

I tried to find an alternative to the function menu_tree_all_data(...) which does filter so that I could apply a patch, but I'm unfortunately new to the Drupal code base. Is there a prewritten function that filter out hidden menu items or will this have to be added in template.php:phptemplate_preprocess_page(...)? I hope not...

#1

ztyx - May 17, 2008 - 05:59
Status:active» needs review

I wrote a function that removed all the hidden menu items. Attaching patch that resolves this issue but needs a review.

AttachmentSize
template.php_.diff 1013 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.