views_ui_taxonomy_term_views_wizard.class.php

Definition of ViewsUiTaxonomyTermViewsWizard.

File

plugins/views_wizard/views_ui_taxonomy_term_views_wizard.class.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Definition of ViewsUiTaxonomyTermViewsWizard.
  5. */
  6. /**
  7. * Tests creating taxonomy views with the wizard.
  8. */
  9. class ViewsUiTaxonomyTermViewsWizard extends ViewsUiBaseViewsWizard {
  10. protected function default_display_options($form, $form_state) {
  11. $display_options = parent::default_display_options($form, $form_state);
  12. // Add permission-based access control.
  13. $display_options['access']['type'] = 'perm';
  14. // Remove the default fields, since we are customizing them here.
  15. unset($display_options['fields']);
  16. /* Field: Taxonomy: Term */
  17. $display_options['fields']['name']['id'] = 'name';
  18. $display_options['fields']['name']['table'] = 'taxonomy_term_data';
  19. $display_options['fields']['name']['field'] = 'name';
  20. $display_options['fields']['name']['label'] = '';
  21. $display_options['fields']['name']['alter']['alter_text'] = 0;
  22. $display_options['fields']['name']['alter']['make_link'] = 0;
  23. $display_options['fields']['name']['alter']['absolute'] = 0;
  24. $display_options['fields']['name']['alter']['trim'] = 0;
  25. $display_options['fields']['name']['alter']['word_boundary'] = 0;
  26. $display_options['fields']['name']['alter']['ellipsis'] = 0;
  27. $display_options['fields']['name']['alter']['strip_tags'] = 0;
  28. $display_options['fields']['name']['alter']['html'] = 0;
  29. $display_options['fields']['name']['hide_empty'] = 0;
  30. $display_options['fields']['name']['empty_zero'] = 0;
  31. $display_options['fields']['name']['link_to_taxonomy'] = 1;
  32. return $display_options;
  33. }
  34. }