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

sun’s picture

Status: Active » Postponed (maintainer needs more info)

Could you please provide further information about why you are needing hook_menu() in your plugin at all?

q0rban’s picture

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

sun’s picture

Status: Postponed (maintainer needs more info) » Active

I see. Mind to create a patch?