You are here

function crumbs_preprocess_page in Crumbs, the Breadcrumbs suite 6.2

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

File

./crumbs.module, line 40

Code

function crumbs_preprocess_page(&$vars) {
  $breadcrumb_data = crumbs_get_breadcrumb_data();
  $vars['crumbs_trail'] = $breadcrumb_data['trail'];
  $vars['crumbs_breadcrumb_items'] = $breadcrumb_data['items'];
  $vars['crumbs_breadcrumb_html'] = $breadcrumb_data['html'];
  $vars['breadcrumb'] = $breadcrumb_data['html'];

  // TODO: Invoke preprocessPage() plugin method.
  $plugin_engine = crumbs_get_plugin_engine();
  $action = new _crumbs_InvokeAction_preprocessPage($vars);
  $plugin_engine
    ->invokeAll_alter($action);
}