Allows modules to alter the path to calculate the breadcrumb.

Parameters

string $path: The current drupal path returned by drupal_get_path_alias().

1 invocation of hook_easy_breadcrumb_path_alter()
_easy_breadcrumb_build_items in ./easy_breadcrumb.module
Helper function to generate breadcrumb items.

File

./easy_breadcrumb.api.php, line 14

Code

function hook_easy_breadcrumb_path_alter(&$path) {
    // Replace the path to calculate the breadcrumb for.
    // The printmail page in the print module.
    $args = arg();
    if ($args[0] == 'printmail') {
        $args[] = array_shift($args);
        $path = implode('/', $args);
    }
}