[development] hooks after hook_menu is called, but before page rendered
Moshe Weitzman
weitzman at tejasa.com
Wed Oct 18 11:37:53 UTC 2006
_craig wrote:
> I'm in the process of updating taxonomy_breadcrumb to work with 5.0 and as
> part of the upgrade I'm making a few improvements to the module. I want
> to have an opportunity to change the breadcrumb trail after hook_menu has
> been called, but before the page is rendered in the theme. I'm not able
> to find any way to do this. Any suggestions?
>
> It seems as if I need a hook added right at the end of
> menu_execute_active_handler() in menu.inc, after call_user_func_array (but
> before returning). Am I missing something? How can I have a function in
> my module execute after any other hook_menu's have been executed?
one way to do that is to adjust the weight for your module. set it to a high
number to be last. see the system table for that. this is usually set by the
module author in .install file
More information about the development
mailing list