[development] displaying all menus regardless of access
Ken Rickard
agentrickard at gmail.com
Mon Jun 15 14:58:40 UTC 2009
I just want to second the custom 403 handler approach. I have done
that before, and the menu query check would be easy (check the
$_GET['q'] against {menu_links}.link_path and account for aliasing.
And you avoid security risks.
On Mon, Jun 15, 2009 at 3:06 AM, Arancaytar
Ilyaran<arancaytar.ilyaran at gmail.com> wrote:
> Ashraf Amayreh wrote:
>> I guess the 2nd part of the question is, my module for 5.x used to
>> render the complete menu (honoring menu access rights) to create a DHTML
>> menu. But now in Drupal 6 it seems there's no way to get inside
>> collapsed menu items. Am I missing something? How can I get the full
>> tree rendered regardless of its state (collapsed or not)?
>
> menu_tree_all_data(). I used this same function when I ported
> http://drupal.org/project/dhtml_menu to Drupal 6.
>
> --
> eternity lies ahead of us, and behind.
> have you drunk your fill?
> * * *
> PGP: http://ermarian.net/downloads/0x27CA5C74
> XMPP: arancaytar.ilyaran at gmail.com
> AOL: 282026638 @icq / RealArancaytar @aim
> URL: http://ermarian.net
>
--
Ken Rickard
agentrickard at gmail.com
http://ken.therickards.com
More information about the development
mailing list