Commit d4389acb authored by Cody Craven's avatar Cody Craven
Browse files

Issue #12310909 by codycraven: Added alter hook in core breadcrumb handler to...

Issue #12310909 by codycraven: Added alter hook in core breadcrumb handler to support manipulating term parents.
parent 7b4c3303
Taxonomy Display 7.x-1.x, YYYY-MM-DD
------------------------------------
Issue #12310909 by codycraven: Added alter hook in core breadcrumb handler to
support manipulating term parents.
Taxonomy Display 7.x-1.0-rc4, 2011-09-11
----------------------------------------
......
......@@ -17,6 +17,8 @@ class TaxonomyDisplayBreadcrumbDisplayHandlerCore extends TaxonomyDisplayBreadcr
);
$breadcrumb = array();
while ($parents = taxonomy_get_parents($current->tid)) {
// Allow modules like i18n_taxonomy to alter the parents.
drupal_alter('taxonomy_display_breadcrumb_parents_alter', $parents);
$current = array_shift($parents);
$breadcrumb[] = l($current->name, 'taxonomy/term/' . $current->tid);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment