Same name and namespace in other branches
  1. 4.6.x includes/common.inc \drupal_set_breadcrumb()
  2. 5.x includes/common.inc \drupal_set_breadcrumb()
  3. 6.x includes/common.inc \drupal_set_breadcrumb()
  4. 7.x includes/common.inc \drupal_set_breadcrumb()

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.

3 calls to 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.
user_admin_perm in modules/user.module
Menu callback: administer permissions.

File

includes/common.inc, line 77
Common functions that many Drupal modules will need to reference.

Code

function drupal_set_breadcrumb($breadcrumb = NULL) {
  static $stored_breadcrumb;
  if (!is_null($breadcrumb)) {
    $stored_breadcrumb = $breadcrumb;
  }
  return $stored_breadcrumb;
}