drupal_set_breadcrumb

Versions
4.6 – 7
drupal_set_breadcrumb($breadcrumb = NULL)

Set the breadcrumb trail for the current page.

Parameters

$breadcrumb Array of links, starting with "home" and proceeding up to but not including the current page.

▾ 2 functions call drupal_set_breadcrumb()

drupal_get_breadcrumb in includes/common.inc
Get the breadcrumb trail for the current page.
node_preview in modules/node.module
Generate a node preview, including a form for further edits.

Code

includes/common.inc, line 18

<?php
function drupal_set_breadcrumb($breadcrumb = NULL) {
  static $stored_breadcrumb;

  if (isset($breadcrumb)) {
    $stored_breadcrumb = $breadcrumb;
  }
  return $stored_breadcrumb;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.