Plugin menu hook
q0rban - April 2, 2008 - 16:36
| Project: | Dynamic Rendering |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
As it stands, there isn't a way for a plugin to hook into render.module's render_menu() function in order to create plugin specific menu callbacks. Since each plugin is an include and not a standalone module, it can't create it's own menu_hook either, so one is forced to either create a custom module, or edit the render.module.

#1
Could you please provide further information about why you are needing hook_menu() in your plugin at all?
#2
I'm trying to get the dynatext scripts from ALA's dynamic text replacement article up and running. It relies on the GET method to transfer the text from the javascript function to the php script that creates the image, so I need a MENU_CALLBACK.
At the moment I just dumped it into a custom module I had handy, but I was figuring I'd post what I have when I get things functioning so that it can be improved upon and possibly added in as a plugin. It seems silly to have to add a separate module in there with just the one menu_callback.
Let me know what you think. Thanks,
James
#3
I see. Mind to create a patch?