Commit 6c455410 authored by Cody Craven's avatar Cody Craven
Browse files

Added documentation for new breadcrumb parents alter hook.

parent d4389acb
......@@ -10,6 +10,28 @@
* @{
*/
/**
* Alter breadcrumb parents before rendering into breadcrumb on term page.
*
* This would be an ideal place to perform translation, set active menus, or
* modify the crumbs.
*
* @param array $parents
* An array of term objects that are parents of the current term.
*
* @return void
*
* @see TaxonomyDisplayBreadcrumbDisplayHandlerCore::buildBreadcrumb()
*/
function hook_taxonomy_display_breadcrumb_parents_alter(&$parents) {
// Manipulate or act upon the term parents.
foreach ($parents as &$parent_term) {
if ($parent_term->name == 'example alter') {
$parent_term->name = 'a better term name';
}
}
}
/**
* Provide plugins to taxonomy_display.
*
......
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