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
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

sun - April 2, 2008 - 22:15
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?

#2

q0rban - April 3, 2008 - 00:45

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

sun - April 3, 2008 - 15:13
Status:postponed (maintainer needs more info)» active

I see. Mind to create a patch?

 
 

Drupal is a registered trademark of Dries Buytaert.