You are here

function crumbs_get_breadcrumb_data in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 7.2 crumbs.module \crumbs_get_breadcrumb_data()
  2. 7 crumbs.module \crumbs_get_breadcrumb_data()
1 call to crumbs_get_breadcrumb_data()
crumbs_preprocess_page in ./crumbs.module

File

./crumbs.module, line 53

Code

function crumbs_get_breadcrumb_data() {
  static $_data;
  if (!isset($_data)) {
    $trail = crumbs_get_trail();
    module_load_include('inc', 'crumbs', 'crumbs.breadcrumb');
    $items = crumbs_build_breadcrumb($trail);
    $html = theme('crumbs_breadcrumb', $items);
    $_data = compact('trail', 'items', 'html');
  }
  return $_data;
}