1 common.inc | backdrop_set_breadcrumb($breadcrumb = NULL) |
Sets the breadcrumb trail for the current page.
Parameters
array $breadcrumb: Array of links, starting with "home" and proceeding up to but not including the current page.
Return value
array: The current breadcrumb trail array.
File
- core/
includes/ common.inc, line 211 - Common functions that many Backdrop modules will need to reference.
Code
function backdrop_set_breadcrumb($breadcrumb = NULL) {
$stored_breadcrumb = &backdrop_static(__FUNCTION__);
if (isset($breadcrumb)) {
$stored_breadcrumb = $breadcrumb;
}
return $stored_breadcrumb;
}