Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The method custom_breadcrumbs_taxonomy_node_get_lightest_term()
does not return the lightest term of the lightest vocabulary.
This method assumes that the terms are ordered by vocabulary weight and term weight as in Drupal 6's method taxonomy_node_get_terms()
.
However, the terms of custom_breadcrumbs_taxonomy_node_get_terms()
are not ordered.
I've added a patch which restores the same order as in Drupal 6.
Comment | File | Size | Author |
---|---|---|---|
cb_lightest-0.patch | 770 bytes | scito | |
Comments
Comment #1
scitoComment #2
novakov CreditAttribution: novakov commentedthe patch i was searching for! thanks for sharing - now i`m able to define which vocabulary to use for breadcrumbs.
Comment #3
boreg CreditAttribution: boreg commentedmany thanks for patch #1, works like a charm
Comment #4
benshell CreditAttribution: benshell commentedWorks great, thanks!
Comment #5
colanCommitted in 5ef1d28.