Posted by PixelClever on September 17, 2008 at 10:29am
Hello Everyone,
I have been working with the new Drupal 6 hook_menu, and have discovered that hook_menu in D6 no longer accepts $may_cache or !$may_cache as arguments. I have a menu which writes out some links information dynamically, and I can't figure out how to stop it from caching the menu.
I have searched for an answer and I found a very vague reference to the use of hook_init and hook_link_save, but there was no example of how to implement this. Does anyone know how to to it properly?
Thanks,
Comments
Also interested
I recently struggled with how to add tabs to certain node-types in D6 (something I used to use $may_cache for). The solution, as it turned out, is quite clean - much nicer than the D5 way: http://drupal.org/node/307510
I know that doesn't help you, but I'm confident there's a snappy little solution with the new menu system. I'll be interested in what comes up in this forum thread.
got it
page 71 of Pro Drupal Development (2nd edition): "Defining a Title Callback"
If you don't have the book, then check out: http://drupal.org/node/140311
I am sorry, but this takes
I am sorry, but this takes the cake for the most useless reply I have ever seen on the internet
http://dgtlmoon.com/dynamic_h
http://dgtlmoon.com/dynamic_hookmenu_results_in_drupal_was_5_not_in_6