You are here

function taxonomy_display_taxonomy_display_plugins in Taxonomy display 7

Implements hook_taxonomy_display_plugins().

Taxonomy Display invokes this hook when looking for plugins for displaying taxonomy term, taxonomy term's associated content, and taxonomy term's breadcrumbs.

File

./taxonomy_display.module, line 200
Hooks for the taxonomy display module.

Code

function taxonomy_display_taxonomy_display_plugins() {

  // To add custom plugins in your own hook implementation return an array with
  // the format below:
  $plugins = array(
    // In the array's sencondary arrays, provide the implementing class
    // name of your handler as the keys and the text to be displayed to the user
    // for display as the value.
    //
    // Note: All of the class's files are in our module's .info files array so
    //   that auto loading works.
    'associated' => array(
      'TaxonomyDisplayAssociatedDisplayHandlerCore' => t('Core'),
      'TaxonomyDisplayAssociatedDisplayHandlerHidden' => t('Hidden'),
    ),
    'breadcrumb' => array(
      'TaxonomyDisplayBreadcrumbDisplayHandlerCore' => t('Core'),
      'TaxonomyDisplayBreadcrumbDisplayHandlerHidden' => t('Hidden'),
      'TaxonomyDisplayBreadcrumbDisplayHandlerIgnore' => t('Ignore'),
    ),
    'term' => array(
      'TaxonomyDisplayTermDisplayHandlerCore' => t('Core'),
      'TaxonomyDisplayTermDisplayHandlerHidden' => t('Hidden'),
    ),
  );

  // Conditional plugins
  if (module_exists('views')) {
    $plugins['associated']['TaxonomyDisplayAssociatedDisplayHandlerViews'] = t('Views');
  }
  return $plugins;
}