function hook_easy_breadcrumb_path_alter in Easy Breadcrumb 7.2
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 - API documentation file for Easy Breadcrumb.
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);
}
}