Active
Project:
Dynamic Rendering
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
2 Apr 2008 at 16:36 UTC
Updated:
3 Apr 2008 at 15:13 UTC
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.
Comments
Comment #1
sunCould you please provide further information about why you are needing hook_menu() in your plugin at all?
Comment #2
q0rban commentedI'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
Comment #3
sunI see. Mind to create a patch?