node.views_default.inc 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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 node_views_default_views() {
  10. $views = array();
  11. $view = new view;
  12. $view->name = 'archive';
  13. $view->description = 'Display a list of months that link to content for that month.';
  14. $view->tag = 'default';
  15. $view->base_table = 'node';
  16. $view->human_name = 'Archive';
  17. $view->core = 0;
  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['title'] = 'Monthly archive';
  23. $handler->display->display_options['access']['type'] = 'none';
  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: Post date */
  32. $handler->display->display_options['sorts']['created']['id'] = 'created';
  33. $handler->display->display_options['sorts']['created']['table'] = 'node';
  34. $handler->display->display_options['sorts']['created']['field'] = 'created';
  35. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  36. /* Contextual filter: Content: Created year + month */
  37. $handler->display->display_options['arguments']['created_year_month']['id'] = 'created_year_month';
  38. $handler->display->display_options['arguments']['created_year_month']['table'] = 'node';
  39. $handler->display->display_options['arguments']['created_year_month']['field'] = 'created_year_month';
  40. $handler->display->display_options['arguments']['created_year_month']['default_action'] = 'summary';
  41. $handler->display->display_options['arguments']['created_year_month']['exception']['title_enable'] = 1;
  42. $handler->display->display_options['arguments']['created_year_month']['title_enable'] = 1;
  43. $handler->display->display_options['arguments']['created_year_month']['title'] = '%1';
  44. $handler->display->display_options['arguments']['created_year_month']['default_argument_type'] = 'fixed';
  45. $handler->display->display_options['arguments']['created_year_month']['summary']['sort_order'] = 'desc';
  46. $handler->display->display_options['arguments']['created_year_month']['summary']['format'] = 'default_summary';
  47. $handler->display->display_options['arguments']['created_year_month']['summary_options']['override'] = TRUE;
  48. $handler->display->display_options['arguments']['created_year_month']['summary_options']['items_per_page'] = '30';
  49. $handler->display->display_options['arguments']['created_year_month']['specify_validation'] = 1;
  50. /* Filter criterion: Content: Published */
  51. $handler->display->display_options['filters']['status']['id'] = 'status';
  52. $handler->display->display_options['filters']['status']['table'] = 'node';
  53. $handler->display->display_options['filters']['status']['field'] = 'status';
  54. $handler->display->display_options['filters']['status']['value'] = 1;
  55. $handler->display->display_options['filters']['status']['group'] = 0;
  56. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  57. /* Display: Page */
  58. $handler = $view->new_display('page', 'Page', 'page');
  59. $handler->display->display_options['path'] = 'archive';
  60. /* Display: Block */
  61. $handler = $view->new_display('block', 'Block', 'block');
  62. $handler->display->display_options['defaults']['arguments'] = FALSE;
  63. /* Contextual filter: Content: Created year + month */
  64. $handler->display->display_options['arguments']['created_year_month']['id'] = 'created_year_month';
  65. $handler->display->display_options['arguments']['created_year_month']['table'] = 'node';
  66. $handler->display->display_options['arguments']['created_year_month']['field'] = 'created_year_month';
  67. $handler->display->display_options['arguments']['created_year_month']['default_action'] = 'summary';
  68. $handler->display->display_options['arguments']['created_year_month']['exception']['title_enable'] = 1;
  69. $handler->display->display_options['arguments']['created_year_month']['title_enable'] = 1;
  70. $handler->display->display_options['arguments']['created_year_month']['title'] = '%1';
  71. $handler->display->display_options['arguments']['created_year_month']['default_argument_type'] = 'fixed';
  72. $handler->display->display_options['arguments']['created_year_month']['summary']['format'] = 'default_summary';
  73. $handler->display->display_options['arguments']['created_year_month']['summary_options']['items_per_page'] = '30';
  74. $handler->display->display_options['arguments']['created_year_month']['specify_validation'] = 1;
  75. $translatables['archive'] = array(
  76. t('Master'),
  77. t('Monthly archive'),
  78. t('more'),
  79. t('Apply'),
  80. t('Reset'),
  81. t('Sort by'),
  82. t('Asc'),
  83. t('Desc'),
  84. t('Items per page'),
  85. t('- All -'),
  86. t('Offset'),
  87. t('All'),
  88. t('%1'),
  89. t('Page'),
  90. t('Block'),
  91. );
  92. $views['archive'] = $view;
  93. $view = new view;
  94. $view->name = 'frontpage';
  95. $view->description = 'Emulates the default Drupal front page; you may set the default home page path to this view to make it your front page.';
  96. $view->tag = 'default';
  97. $view->base_table = 'node';
  98. $view->human_name = 'Front page';
  99. $view->core = 0;
  100. $view->api_version = '3.0';
  101. $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
  102. /* Display: Master */
  103. $handler = $view->new_display('default', 'Master', 'default');
  104. $handler->display->display_options['access']['type'] = 'none';
  105. $handler->display->display_options['cache']['type'] = 'none';
  106. $handler->display->display_options['query']['type'] = 'views_query';
  107. $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  108. $handler->display->display_options['exposed_form']['type'] = 'basic';
  109. $handler->display->display_options['pager']['type'] = 'full';
  110. $handler->display->display_options['style_plugin'] = 'default';
  111. $handler->display->display_options['row_plugin'] = 'node';
  112. $handler->display->display_options['row_options']['links'] = 1;
  113. /* Sort criterion: Content: Sticky */
  114. $handler->display->display_options['sorts']['sticky']['id'] = 'sticky';
  115. $handler->display->display_options['sorts']['sticky']['table'] = 'node';
  116. $handler->display->display_options['sorts']['sticky']['field'] = 'sticky';
  117. $handler->display->display_options['sorts']['sticky']['order'] = 'DESC';
  118. /* Sort criterion: Content: Post date */
  119. $handler->display->display_options['sorts']['created']['id'] = 'created';
  120. $handler->display->display_options['sorts']['created']['table'] = 'node';
  121. $handler->display->display_options['sorts']['created']['field'] = 'created';
  122. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  123. /* Filter criterion: Content: Promoted to front page */
  124. $handler->display->display_options['filters']['promote']['id'] = 'promote';
  125. $handler->display->display_options['filters']['promote']['table'] = 'node';
  126. $handler->display->display_options['filters']['promote']['field'] = 'promote';
  127. $handler->display->display_options['filters']['promote']['value'] = '1';
  128. $handler->display->display_options['filters']['promote']['group'] = 0;
  129. $handler->display->display_options['filters']['promote']['expose']['operator'] = FALSE;
  130. /* Filter criterion: Content: Published */
  131. $handler->display->display_options['filters']['status']['id'] = 'status';
  132. $handler->display->display_options['filters']['status']['table'] = 'node';
  133. $handler->display->display_options['filters']['status']['field'] = 'status';
  134. $handler->display->display_options['filters']['status']['value'] = '1';
  135. $handler->display->display_options['filters']['status']['group'] = 0;
  136. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  137. /* Display: Page */
  138. $handler = $view->new_display('page', 'Page', 'page');
  139. $handler->display->display_options['path'] = 'frontpage';
  140. /* Display: Feed */
  141. $handler = $view->new_display('feed', 'Feed', 'feed');
  142. $handler->display->display_options['defaults']['title'] = FALSE;
  143. $handler->display->display_options['title'] = 'Front page feed';
  144. $handler->display->display_options['pager']['type'] = 'some';
  145. $handler->display->display_options['style_plugin'] = 'rss';
  146. $handler->display->display_options['row_plugin'] = 'node_rss';
  147. $handler->display->display_options['path'] = 'rss.xml';
  148. $handler->display->display_options['displays'] = array(
  149. 'default' => 'default',
  150. 'page' => 'page',
  151. );
  152. $handler->display->display_options['sitename_title'] = '1';
  153. $translatables['frontpage'] = array(
  154. t('Master'),
  155. t('more'),
  156. t('Apply'),
  157. t('Reset'),
  158. t('Sort by'),
  159. t('Asc'),
  160. t('Desc'),
  161. t('Items per page'),
  162. t('- All -'),
  163. t('Offset'),
  164. t('Page'),
  165. t('Feed'),
  166. t('Front page feed'),
  167. );
  168. $views['frontpage'] = $view;
  169. $view = new view;
  170. $view->name = 'glossary';
  171. $view->description = 'A list of all content, by letter.';
  172. $view->tag = 'default';
  173. $view->base_table = 'node';
  174. $view->human_name = 'Glossary';
  175. $view->core = 0;
  176. $view->api_version = '3.0';
  177. $view->disabled = TRUE; /* Edit this to true to make a default view disabled initially */
  178. /* Display: Master */
  179. $handler = $view->new_display('default', 'Master', 'default');
  180. $handler->display->display_options['use_ajax'] = TRUE;
  181. $handler->display->display_options['access']['type'] = 'none';
  182. $handler->display->display_options['cache']['type'] = 'none';
  183. $handler->display->display_options['query']['type'] = 'views_query';
  184. $handler->display->display_options['query']['options']['query_comment'] = FALSE;
  185. $handler->display->display_options['exposed_form']['type'] = 'basic';
  186. $handler->display->display_options['pager']['type'] = 'full';
  187. $handler->display->display_options['pager']['options']['items_per_page'] = 36;
  188. $handler->display->display_options['style_plugin'] = 'table';
  189. $handler->display->display_options['style_options']['columns'] = array(
  190. 'title' => 'title',
  191. 'name' => 'name',
  192. 'changed' => 'changed',
  193. );
  194. $handler->display->display_options['style_options']['default'] = 'title';
  195. $handler->display->display_options['style_options']['info'] = array(
  196. 'title' => array(
  197. 'sortable' => 1,
  198. 'separator' => '',
  199. ),
  200. 'name' => array(
  201. 'sortable' => 1,
  202. 'separator' => '',
  203. ),
  204. 'changed' => array(
  205. 'sortable' => 1,
  206. 'separator' => '',
  207. ),
  208. );
  209. $handler->display->display_options['style_options']['override'] = 1;
  210. $handler->display->display_options['style_options']['sticky'] = 0;
  211. /* Field: Content: Title */
  212. $handler->display->display_options['fields']['title']['id'] = 'title';
  213. $handler->display->display_options['fields']['title']['table'] = 'node';
  214. $handler->display->display_options['fields']['title']['field'] = 'title';
  215. $handler->display->display_options['fields']['title']['link_to_node'] = 1;
  216. /* Field: User: Name */
  217. $handler->display->display_options['fields']['name']['id'] = 'name';
  218. $handler->display->display_options['fields']['name']['table'] = 'users';
  219. $handler->display->display_options['fields']['name']['field'] = 'name';
  220. $handler->display->display_options['fields']['name']['label'] = 'Author';
  221. $handler->display->display_options['fields']['name']['link_to_user'] = 1;
  222. /* Field: Content: Updated date */
  223. $handler->display->display_options['fields']['changed']['id'] = 'changed';
  224. $handler->display->display_options['fields']['changed']['table'] = 'node';
  225. $handler->display->display_options['fields']['changed']['field'] = 'changed';
  226. $handler->display->display_options['fields']['changed']['label'] = 'Last update';
  227. $handler->display->display_options['fields']['changed']['date_format'] = 'large';
  228. /* Contextual filter: Content: Title */
  229. $handler->display->display_options['arguments']['title']['id'] = 'title';
  230. $handler->display->display_options['arguments']['title']['table'] = 'node';
  231. $handler->display->display_options['arguments']['title']['field'] = 'title';
  232. $handler->display->display_options['arguments']['title']['default_action'] = 'default';
  233. $handler->display->display_options['arguments']['title']['exception']['title_enable'] = 1;
  234. $handler->display->display_options['arguments']['title']['default_argument_type'] = 'fixed';
  235. $handler->display->display_options['arguments']['title']['default_argument_options']['argument'] = 'a';
  236. $handler->display->display_options['arguments']['title']['summary']['format'] = 'default_summary';
  237. $handler->display->display_options['arguments']['title']['specify_validation'] = 1;
  238. $handler->display->display_options['arguments']['title']['glossary'] = 1;
  239. $handler->display->display_options['arguments']['title']['limit'] = '1';
  240. $handler->display->display_options['arguments']['title']['case'] = 'upper';
  241. $handler->display->display_options['arguments']['title']['path_case'] = 'lower';
  242. $handler->display->display_options['arguments']['title']['transform_dash'] = 0;
  243. /* Display: Page */
  244. $handler = $view->new_display('page', 'Page', 'page');
  245. $handler->display->display_options['path'] = 'glossary';
  246. $handler->display->display_options['menu']['type'] = 'normal';
  247. $handler->display->display_options['menu']['title'] = 'Glossary';
  248. $handler->display->display_options['menu']['weight'] = '0';
  249. /* Display: Attachment */
  250. $handler = $view->new_display('attachment', 'Attachment', 'attachment');
  251. $handler->display->display_options['pager']['type'] = 'none';
  252. $handler->display->display_options['pager']['options']['offset'] = '0';
  253. $handler->display->display_options['defaults']['arguments'] = FALSE;
  254. /* Contextual filter: Content: Title */
  255. $handler->display->display_options['arguments']['title']['id'] = 'title';
  256. $handler->display->display_options['arguments']['title']['table'] = 'node';
  257. $handler->display->display_options['arguments']['title']['field'] = 'title';
  258. $handler->display->display_options['arguments']['title']['default_action'] = 'summary';
  259. $handler->display->display_options['arguments']['title']['exception']['title_enable'] = 1;
  260. $handler->display->display_options['arguments']['title']['default_argument_type'] = 'fixed';
  261. $handler->display->display_options['arguments']['title']['default_argument_options']['argument'] = 'a';
  262. $handler->display->display_options['arguments']['title']['summary']['format'] = 'unformatted_summary';
  263. $handler->display->display_options['arguments']['title']['summary_options']['items_per_page'] = '25';
  264. $handler->display->display_options['arguments']['title']['summary_options']['inline'] = 1;
  265. $handler->display->display_options['arguments']['title']['summary_options']['separator'] = ' | ';
  266. $handler->display->display_options['arguments']['title']['specify_validation'] = 1;
  267. $handler->display->display_options['arguments']['title']['glossary'] = 1;
  268. $handler->display->display_options['arguments']['title']['limit'] = '1';
  269. $handler->display->display_options['arguments']['title']['case'] = 'upper';
  270. $handler->display->display_options['arguments']['title']['path_case'] = 'lower';
  271. $handler->display->display_options['arguments']['title']['transform_dash'] = 0;
  272. $handler->display->display_options['displays'] = array(
  273. 'default' => 'default',
  274. 'page' => 'page',
  275. );
  276. $handler->display->display_options['inherit_arguments'] = 0;
  277. $translatables['glossary'] = array(
  278. t('Master'),
  279. t('more'),
  280. t('Apply'),
  281. t('Reset'),
  282. t('Sort by'),
  283. t('Asc'),
  284. t('Desc'),
  285. t('Items per page'),
  286. t('- All -'),
  287. t('Offset'),
  288. t('Title'),
  289. t('Author'),
  290. t('Last update'),
  291. t('All'),
  292. t('Page'),
  293. t('Attachment'),
  294. );
  295. $views['glossary'] = $view;
  296. return $views;
  297. }