You are here

function hook_breadcrumb_alter in Breadcrumb Manager 7

Allow other modules to alter the generated breadcrumb.

Parameters

$breadcrumb:

$current_path:

Related topics

1 invocation of hook_breadcrumb_alter()
breadcrumb_manager_set_breadcrumb in ./breadcrumb_manager.module
Magic function: Evaluates correct breadcrumb from the given path.

File

./breadcrumb_manager.api.php, line 21
Describe hooks provided by the Breadcrumb Manager module.

Code

function hook_breadcrumb_alter(&$breadcrumb, $current_path) {
  if ($current_path == 'news') {
    $breadcrumb = array(
      l(t('Home'), '<front>'),
      'News',
    );
  }
}