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