function drupal_set_breadcrumb

Sets 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.

8 calls to drupal_set_breadcrumb()
comment_reply in drupal/core/modules/comment/comment.pages.inc
Form constructor for the comment reply form.
drupal_get_breadcrumb in drupal/core/includes/common.inc
Gets the breadcrumb trail for the current page.
forum_node_view in drupal/core/modules/forum/forum.module
Implements hook_node_view().
hook_view in drupal/core/modules/node/node.api.php
Display a node.
menu_edit_item in drupal/core/modules/menu/menu.admin.inc
Menu callback; Build the menu link editing form.

... See full list

File

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

Code

function drupal_set_breadcrumb($breadcrumb = NULL) {
  $stored_breadcrumb =& drupal_static(__FUNCTION__);
  if (isset($breadcrumb)) {
    $stored_breadcrumb = $breadcrumb;
  }
  return $stored_breadcrumb;
}