Commit f5e9709c authored by tmsimont's avatar tmsimont Committed by codycraven
Browse files

Issue #1798169 by tmsimont, lotyrin, codycraven: Added ignore breadcrumb...

Issue #1798169 by tmsimont, lotyrin, codycraven: Added ignore breadcrumb plugin to allow other modules to set the breadcrumb.
parent 9b4296b5
Taxonomy Display 7.x-1.x, YYYY-MM-DD
------------------------------------
Issue #1798169 by tmsimont, lotyrin, codycraven: Added ignore breadcrumb plugin
to allow other modules to set the breadcrumb.
Issue #1811426 by Moloc: Fix term name not used as page title when menu item
links to it.
Issue #1807714 by codycraven: Due to #1410576 CTools is now a dependency.
......
<?php
/**
* Add a display handler to not set any breadcrumb.
*/
class TaxonomyDisplayBreadcrumbDisplayHandlerIgnore extends TaxonomyDisplayBreadcrumbDisplayHandlerCore {
/**
* Do not display anything to the user, we return an empty string.
*
* @see TaxonomyDisplayBreadcrumbDisplayHandler::buildBreacrumb()
*/
public function buildBreadcrumb($term) {
}
/**
* Set a description when the user selects this option.
*
* @see TaxonomyDisplayHandlerForm::formFieldset()
*/
public function formFieldset(&$form, &$values, $options = NULL) {
$form['#description'] = t('A breadcrumb will not be set, allowing other modules to do so.');
}
/**
* Do not want anything stored, return void.
*
* @see TaxonomyDisplayHandlerForm::formSubmit()
*/
public function formSubmit($form, &$values) {
}
}
......@@ -20,3 +20,4 @@ files[] = handlers/associated/views.inc
; - For breadcrumb generation
files[] = handlers/breadcrumb/core.inc
files[] = handlers/breadcrumb/hidden.inc
files[] = handlers/breadcrumb/ignore.inc
......@@ -214,6 +214,7 @@ function taxonomy_display_taxonomy_display_plugins() {
'breadcrumb' => array(
'TaxonomyDisplayBreadcrumbDisplayHandlerCore' => t('Core'),
'TaxonomyDisplayBreadcrumbDisplayHandlerHidden' => t('Hidden'),
'TaxonomyDisplayBreadcrumbDisplayHandlerIgnore' => t('Ignore'),
),
'term' => array(
'TaxonomyDisplayTermDisplayHandlerCore' => t('Core'),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment