function hook_easy_breadcrumb_breadcrumb_alter in Easy Breadcrumb 7.2
Allows modules to alter the breadcrumb displayed in the block.
Parameters
array $breadcrumb: The breadcrumb array returned to render in the block.
1 invocation of hook_easy_breadcrumb_breadcrumb_alter()
- _easy_breadcrumb_build_items in ./
easy_breadcrumb.module - Helper function to generate breadcrumb items.
File
- ./
easy_breadcrumb.api.php, line 30 - API documentation file for Easy Breadcrumb.
Code
function hook_easy_breadcrumb_breadcrumb_alter(array &$breadcrumb) {
// Remove the last breadcrumb element for node pages.
$args = arg();
if ($args[0] == 'node') {
array_pop($breadcrumb);
}
}