function drupal_set_breadcrumb
7.x common.inc | drupal_set_breadcrumb($breadcrumb = NULL) |
6.x common.inc | 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.
7 calls to drupal_set_breadcrumb()
- blog_view in drupal-6.x/
modules/ blog/ blog.module - Implementation of hook_view().
- comment_reply in drupal-6.x/
modules/ comment/ comment.pages.inc - This function is responsible for generating a comment reply form. There are several cases that have to be handled, including:
- drupal_get_breadcrumb in drupal-6.x/
includes/ common.inc - Get the breadcrumb trail for the current page.
- forum_nodeapi in drupal-6.x/
modules/ forum/ forum.module - Implementation of hook_nodeapi().
- hook_view in documentation-6.x/
developer/ hooks/ node.php - Display a node.
File
- drupal-6.x/
includes/ common.inc, line 89 - 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;
}