class TaxonomyDisplayBreadcrumbDisplayHandlerHidden in Taxonomy display 7
Add a display handler that will omit the breadcrumb on term pages.
Hierarchy
- class \TaxonomyDisplayHandlerForm
Expanded class hierarchy of TaxonomyDisplayBreadcrumbDisplayHandlerHidden
File
- handlers/
breadcrumb/ hidden.inc, line 6
View source
class TaxonomyDisplayBreadcrumbDisplayHandlerHidden extends TaxonomyDisplayBreadcrumbDisplayHandler {
/**
* Do not display anything to the user, we return an empty string.
*
* @see TaxonomyDisplayBreadcrumbDisplayHandler::buildBreacrumb()
*/
public function buildBreadcrumb($term) {
drupal_set_breadcrumb('');
}
/**
* Set a description when the user selects this option.
*
* @see TaxonomyDisplayHandlerForm::formFieldset()
*/
public function formFieldset(&$form, &$values, $options = NULL) {
$form['#description'] = t('The breadcrumb for the term will not be displayed to the user when viewed.');
}
/**
* Do not want anything stored, return void.
*
* @see TaxonomyDisplayHandlerForm::formSubmit()
*/
public function formSubmit($form, &$values) {
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaxonomyDisplayBreadcrumbDisplayHandlerHidden:: |
public | function |
Do not display anything to the user, we return an empty string. Overrides TaxonomyDisplayBreadcrumbDisplayHandler:: |
|
TaxonomyDisplayBreadcrumbDisplayHandlerHidden:: |
public | function |
Set a description when the user selects this option. Overrides TaxonomyDisplayHandlerForm:: |
|
TaxonomyDisplayBreadcrumbDisplayHandlerHidden:: |
public | function |
Do not want anything stored, return void. Overrides TaxonomyDisplayHandlerForm:: |
|
TaxonomyDisplayHandlerForm:: |
public | function | Perform validation on the custom formFieldset when the user submits. | 1 |