You are here

function crumbs_preprocess_page in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 6.2 crumbs.module \crumbs_preprocess_page()
  2. 6 crumbs.module \crumbs_preprocess_page()
  3. 7.2 crumbs.module \crumbs_preprocess_page()

Implements hook_preprocess_page().

File

./crumbs.module, line 126
Provides an API for building breadcrumbs.

Code

function crumbs_preprocess_page(&$vars) {
  $vars['crumbs_trail'] = array();
  $vars['breadcrumb'] = '';
  $breadcrumb_data = crumbs_get_breadcrumb_data();
  if ($breadcrumb_data) {
    $vars['crumbs_trail'] = $breadcrumb_data['trail'];
    $vars['breadcrumb'] = $breadcrumb_data['html'];
  }
}