You are here

function _customfilter_breadcrumb in Custom filter 7

Same name and namespace in other branches
  1. 7.2 customfilter.module \_customfilter_breadcrumb()

Set the current menu breadcrumb for pages that don't have it correctly set.

Parameters

$page_breadcrumb: The part of the breadcrumb specific for the page.

6 calls to _customfilter_breadcrumb()
customfilter_filter_delete in ./customfilter.module
Return the filter delete form.
customfilter_filter_edit in ./customfilter.module
Return the filter edit form.
customfilter_rules_form in ./customfilter.module
Return the list of replacement rules form.
customfilter_rules_form_edit in ./customfilter.module
Return the replacement rule edit form.
customfilter_rule_delete in ./customfilter.module
Return the replacement rule delete form.

... See full list

File

./customfilter.module, line 370
Allows the users with the right permission to define custom filters.

Code

function _customfilter_breadcrumb($page_breadcrumb = array()) {
  $base = array(
    l(t('Home'), NULL),
    l(t('Administer'), 'admin'),
    l(t('Site configuration'), 'admin/config'),
    l(t('Content'), 'admin/config/content'),
    l(t('Custom filters'), 'admin/config/content/customfilter'),
  );
  if (count($page_breadcrumb)) {
    drupal_set_breadcrumb(array_merge($base, $page_breadcrumb));
  }
  else {
    drupal_set_breadcrumb($base);
  }
}