Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
menu system
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
6 Jan 2005 at 07:13 UTC
Updated:
21 Jun 2007 at 09:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
andremolnar commentedPatch making use of this is now added to http://drupal.org/node/14120.
andre
Comment #2
andremolnar commentedJust realising that the rules for setting status to patch would allow this to be patch since its technically ready to go. (and it might actually get noticed if its on the dev list and patch queue).
andre
Comment #3
dries commentedI'm OK with this patch but won't commit it yet until the book module patch is ready.
Comment #4
andremolnar commentedI've uploaded the latest version of the patch to book.
http://drupal.org/node/14120
andre
Comment #5
jonbob commentedI'd prefer a solution that allowed modules to declare such menu items using the menu hook, but haven't been able to come up with such a solution. I'm okay with this approach until such time as someone has a brilliant idea to make the menu hook more powerful.
Comment #6
andremolnar commentedJonBob,
I'd be happy to work on a solution with you. Right now what I had to do in the proposed changes to book was build functions to insert data into the {menu} table by hand since there was no other handler available (e.g. hook_menu). And proposing this MENU_MODULE_MENU type was the only way I could think of to clearly distinguish where these new menu items were coming from (i.e. a module doing an insert into the menu system outside of the normal chanels).
Would the creation of a new hook_ be in order. Perhaps hook_menu_block? While it would be a confusing hook name - it is does describe the desired outcome. i.e. Output from hook_menu_block would be inserted into the menu system and a block would be created for that menu.But even then I think these new menu types (or something similar) would have to be employed in some way.
andre
Comment #7
andremolnar commentedNoticed patch was out of date - keeping it current.
Comment #8
killes@www.drop.org commentedStill applies.
Comment #9
Bèr Kessels commentedthe patch no longher applies
patch -p0 < menu_patch.diff
patching file includes/menu.inc
patching file includes/theme.inc
Hunk #1 succeeded at 216 with fuzz 2 (offset 1 line).
patching file misc/drupal.css
Hunk #1 succeeded at 610 with fuzz 2 (offset 57 lines).
patching file modules/system.module
Hunk #1 FAILED at 653.
1 out of 1 hunk FAILED -- saving rejects to file modules/system.module.rej
Comment #10
magico commented@andremolnar: reroll a patch.
Comment #11
andremolnar commentedmenu system is totally being reworked by chx - if it stablizes and anything left there would allow this sort of functionality I will re-roll a patch
Comment #12
chx commentedComment #13
(not verified) commented