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

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);
    }
}