taxonomy.views_default.inc 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <?php
  2. /**
  3. * @file
  4. * Bulk export of views_default objects generated by Bulk export module.
  5. */
  6. /**
  7. * Implements 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'] = 'perm';
  23. $handler->display->display_options['access']['perm'] = 'access content';
  24. $handler->display->display_options['cache']['type'] = 'none';
  25. $handler->display->display_options['query']['type'] = 'views_query';
  26. $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  27. $handler->display->display_options['exposed_form']['type'] = 'basic';
  28. $handler->display->display_options['pager']['type'] = 'full';
  29. $handler->display->display_options['style_plugin'] = 'default';
  30. $handler->display->display_options['row_plugin'] = 'node';
  31. /* Sort criterion: Content: Sticky */
  32. $handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
  33. $handler->display->display_options['sorts']['sticky']['table'] = 'node';
  34. $handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
  35. $handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
  36. /* Sort criterion: Content: Post date */
  37. $handler->display->display_options['sorts']['created']['id'] = 'created';
  38. $handler->display->display_options['sorts']['created']['table'] = 'node';
  39. $handler->display->display_options['sorts']['created']['field'] = 'created';
  40. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  41. /* Contextual filter: Content: Has taxonomy term ID (with depth) */
  42. $handler->display->display_options['arguments']['term_node_tid_depth']['id'] = 'term_node_tid_depth';
  43. $handler->display->display_options['arguments']['term_node_tid_depth']['table'] = 'node';
  44. $handler->display->display_options['arguments']['term_node_tid_depth']['field'] = 'term_node_tid_depth';
  45. $handler->display->display_options['arguments']['term_node_tid_depth']['default_action'] = 'not found';
  46. $handler->display->display_options['arguments']['term_node_tid_depth']['exception']['title_enable'] = 1;
  47. $handler->display->display_options['arguments']['term_node_tid_depth']['title_enable'] = 1;
  48. $handler->display->display_options['arguments']['term_node_tid_depth']['title'] = '%1';
  49. $handler->display->display_options['arguments']['term_node_tid_depth']['default_argument_type'] = 'fixed';
  50. $handler->display->display_options['arguments']['term_node_tid_depth']['summary']['format'] = 'default_summary';
  51. $handler->display->display_options['arguments']['term_node_tid_depth']['specify_validation'] = 1;
  52. $handler->display->display_options['arguments']['term_node_tid_depth']['validate']['type'] = 'taxonomy_term';
  53. $handler->display->display_options['arguments']['term_node_tid_depth']['depth'] = '0';
  54. $handler->display->display_options['arguments']['term_node_tid_depth']['break_phrase'] = 1;
  55. /* Contextual filter: Content: Has taxonomy term ID depth modifier */
  56. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['id'] = 'term_node_tid_depth_modifier';
  57. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['table'] = 'node';
  58. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['field'] = 'term_node_tid_depth_modifier';
  59. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['exception']['title_enable'] = 1;
  60. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['default_argument_type'] = 'fixed';
  61. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['summary']['format'] = 'default_summary';
  62. $handler->display->display_options['arguments']['term_node_tid_depth_modifier']['specify_validation'] = 1;
  63. /* Filter criterion: Content: Published or admin */
  64. $handler->display->display_options['filters']['status_extra']['id'] = 'status_extra';
  65. $handler->display->display_options['filters']['status_extra']['table'] = 'node';
  66. $handler->display->display_options['filters']['status_extra']['field'] = 'status_extra';
  67. $handler->display->display_options['filters']['status_extra']['group'] = 0;
  68. $handler->display->display_options['filters']['status_extra']['expose']['operator'] = FALSE;
  69. /* Display: Page */
  70. $handler = $view->new_display('page', 'Page', 'page');
  71. $handler->display->display_options['path'] = 'taxonomy/term/%';
  72. /* Display: Feed */
  73. $handler = $view->new_display('feed', 'Feed', 'feed');
  74. $handler->display->display_options['pager']['type'] = 'full';
  75. $handler->display->display_options['pager']['options']['items_per_page'] = 15;
  76. $handler->display->display_options['style_plugin'] = 'rss';
  77. $handler->display->display_options['row_plugin'] = 'node_rss';
  78. $handler->display->display_options['path'] = 'taxonomy/term/%/%/feed';
  79. $handler->display->display_options['displays'] = array(
  80. 'page' => 'page',
  81. 'default' => 0,
  82. );
  83. $translatables['taxonomy_term'] = array(
  84. t('Master'),
  85. t('more'),
  86. t('Apply'),
  87. t('Reset'),
  88. t('Sort by'),
  89. t('Asc'),
  90. t('Desc'),
  91. t('Items per page'),
  92. t('- All -'),
  93. t('Offset'),
  94. t('All'),
  95. t('%1'),
  96. t('Page'),
  97. t('Feed'),
  98. );
  99. $views['taxonomy_term'] = $view;
  100. return $views;
  101. }