How to use og_determine_context for another url?

igorik - June 29, 2009 - 07:21
Project:Organic groups
Version:6.x-2.x-dev
Component:og.module
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi

I found that og_determine_context use at first menu_get_item (and it is relative for loaded/viewing node)
I need to change it to another url (viz my support request http://drupal.org/node/497762#comment-1754394)
(That support request is more complex, so I add this new one for only this part)

so tried to change menu_item before og_determine_context is running with this:

$path = $_GET['q'];
$internal_path = $_REQUEST['destination'];
menu_set_item($path , menu_get_item($internal_path) );

but I have no success. (Maybe it can't be changed from inside node?)

Do you have an idea how I can change menu item and let og_determine_context use another url in menu_get_item ?

Thanks
Igor
http://www.somvprahe.sk

 
 

Drupal is a registered trademark of Dries Buytaert.