taxonomy.views_default.inc

  1. 3.x modules/taxonomy.views_default.inc
  2. 2.x modules/taxonomy.views_default.inc

Bulk export of views_default objects generated by Bulk export module.

File

modules/taxonomy.views_default.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Bulk export of views_default objects generated by Bulk export module.
  5. */
  6. /**
  7. * Implementation of hook_views_default_views()
  8. */
  9. function taxonomy_views_default_views() {
  10. $views = array();
  11. $view = new view;
  12. $view->name = 'taxonomy_term';
  13. $view->description = 'A view to emulate Drupal core\'s handling of taxonomy/term.';
  14. $view->tag = 'default';
  15. $view->base_table = 'node';
  16. $view->human_name = 'Taxonomy term';
  17. $view->core = 7;
  18. $view->api_version = '3.0';
  19. $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
  20. /* Display: Master */
  21. $handler = $view->new_display('default', 'Master', 'default');
  22. $handler->display->display_options['access']['type'] = 'none';
  23. $handler->display->display_options['cache']['type'] = 'none';
  24. $handler->display->display_options['query']['type'] = 'views_query';
  25. $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  26. $handler->display->display_options['exposed_form']['type'] = 'basic';
  27. $handler->display->display_options['pager']['type'] = 'full';
  28. $handler->display->display_options['style_plugin'] = 'default';
  29. $handler->display->display_options['row_plugin'] = 'node';
  30. /* Sort criterion: Content: Sticky */
  31. $handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
  32. $handler->display->display_options['sorts']['sticky']['table'] = 'node';
  33. $handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
  34. $handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
  35. /* Sort criterion: Content: Post date */
  36. $handler->display->display_options['sorts']['created']['id'] = 'created';
  37. $handler->display->display_options['sorts']['created']['table'] = 'node';
  38. $handler->display->display_options['sorts']['created']['field'] = 'created';
  39. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  40. /* Contextual filter: Content: Has taxonomy term ID (with depth) */
  41. $handler->display->display_options['arguments']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  42. $handler->display->display_options['arguments']['term_node_tid_depth']['table'] = 'node';
  43. $handler->display->display_options['arguments']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  44. $handler->display->display_options['arguments']['term_node_tid_depth']['default_action'] = 'not found';
  45. $handler->display->display_options['arguments']['term_node_tid_depth']['exception']['title_enable'] = 1;
  46. $handler->display->display_options['arguments']['term_node_tid_depth']['title_enable'] = 1;
  47. $handler->display->display_options['arguments']['term_node_tid_depth']['title'] = '%1';
  48. $handler->display->display_options['arguments']['term_node_tid_depth']['default_argument_type'] = 'fixed';
  49. $handler->display->display_options['arguments']['term_node_tid_depth']['summary']['format'] = 'default_summary';
  50. $handler->display->display_options['arguments']['term_node_tid_depth']['specify_validation'] = 1;
  51. $handler->display->display_options['arguments']['term_node_tid_depth']['validate']['type'] = 'taxonomy_term';
  52. $handler->display->display_options['arguments']['term_node_tid_depth']['depth'] = '0';
  53. $handler->display->display_options['arguments']['term_node_tid_depth']['break_phrase'] = 1;
  54. /* Contextual filter: Content: Has taxonomy term ID depth modifier */
  55. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['id'] = 'term_node_tid_depth_modifier';
  56. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['table'] = 'node';
  57. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['field'] = 'term_node_tid_depth_modifier';
  58. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['exception']['title_enable'] = 1;
  59. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['default_argument_type'] = 'fixed';
  60. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['summary']['format'] = 'default_summary';
  61. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['specify_validation'] = 1;
  62. /* Filter criterion: Content: Published or admin */
  63. $handler->display->display_options['filters']['status_extra']['id'] = 'status_extra';
  64. $handler->display->display_options['filters']['status_extra']['table'] = 'node';
  65. $handler->display->display_options['filters']['status_extra']['field'] = 'status_extra';
  66. $handler->display->display_options['filters']['status_extra']['group'] = 0;
  67. $handler->display->display_options['filters']['status_extra']['expose']['operator'] = FALSE;
  68. /* Display: Page */
  69. $handler = $view->new_display('page', 'Page', 'page');
  70. $handler->display->display_options['path'] = 'taxonomy/term/%';
  71. /* Display: Feed */
  72. $handler = $view->new_display('feed', 'Feed', 'feed');
  73. $handler->display->display_options['pager']['type'] = 'full';
  74. $handler->display->display_options['pager']['options']['items_per_page'] = 15;
  75. $handler->display->display_options['style_plugin'] = 'rss';
  76. $handler->display->display_options['row_plugin'] = 'node_rss';
  77. $handler->display->display_options['path'] = 'taxonomy/term/%/%/feed';
  78. $handler->display->display_options['displays'] = array(
  79. 'page' => 'page',
  80. 'default' => 0,
  81. );
  82. $translatables['taxonomy_term'] = array(
  83. t('Master'),
  84. t('more'),
  85. t('Apply'),
  86. t('Reset'),
  87. t('Sort by'),
  88. t('Asc'),
  89. t('Desc'),
  90. t('Items per page'),
  91. t('- All -'),
  92. t('Offset'),
  93. t('All'),
  94. t('%1'),
  95. t('Page'),
  96. t('Feed'),
  97. );
  98. $views['taxonomy_term'] = $view;
  99. return $views;
  100. }