Closed (fixed)
Project:
Custom Breadcrumbs
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2007 at 19:17 UTC
Updated:
3 Oct 2009 at 06:30 UTC
As per the title, using drupal_set_breadcrumb() affects breadcrumbs but not the chain of "active" or "expanded" menu items. Generally I always want to get both. The attached patch against 1.2 switches to using menu_set_location() instead, which has that effect. It also runs drupal_get_normal_path() on the specified path, so that you can enter path aliases.
This patch is against 1.2, not 1.x-dev, because I noticed other changes in the dev version that I feared might interfere with this patch. I'm not quite sure how to handle the none-case. That is left as an exercise for the committer. :-)
| Comment | File | Size | Author |
|---|---|---|---|
| set_location.patch | 1.2 KB | Crell |
Comments
Comment #1
anantagati commentedSorry, I sent reply by mistake on bad issue.
Comment #2
MGN commentedI just committed something similar to this. See #124390: Highlight current menu item for details.