So I know that this is really a problem with Drupal core, but on some of our pages which were in 'Primary Links' menu tree structure, menu_get_active_menu_name() was returning 'navigation'. Can't really tell you how to replicate.
We find that inserting a bit of code from ctools that checks to see whether the menu trail was set to 'navigation', and then fixing it, if it was set improperly, worked to fix what Drupal was handing the context. That is, it always returns 'primary links' if that menu item is in the primary links menu.
This behavior on the part of Drupal may explain some of the bugs in your queue, and may fix some of the mysterious behavior that people are blaming on context, and subsequently posting bug reports. ;)
Anyhow, I've got a patch here, with the method.
| Comment | File | Size | Author |
|---|---|---|---|
| context_menu_set_active_trail.patch | 1.05 KB | glass.dimly |
Comments
Comment #1
brynbellomy commentedhttp://drupal.org/node/289767 Cheggidout
Comment #2
yhahn commentedComment #3
yhahn commentedThanks. http://drupal.org/cvs?commit=400298
Comment #4
yhahn commentedThanks. http://drupal.org/cvs?commit=400298