Added featured blurb viewcustom module
[indybay:drupal.git] / docs / sites / all / modules / custom / indybay_featured_view / indybay_featured_view.views_default.inc
1 <?php
2 /**
3  * @file
4  * indybay_featured_view.views_default.inc
5  */
6
7 /**
8  * Implements hook_views_default_views().
9  */
10 function indybay_featured_view_views_default_views() {
11   $export = array();
12
13   $view = new view();
14   $view->name = 'featured_news_blurbs';
15   $view->description = '';
16   $view->tag = 'default';
17   $view->base_table = 'node';
18   $view->human_name = 'Featured News';
19   $view->core = 7;
20   $view->api_version = '3.0';
21   $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
22
23   /* Display: Master */
24   $handler = $view->new_display('default', 'Master', 'default');
25   $handler->display->display_options['title'] = 'Featured News';
26   $handler->display->display_options['use_more_always'] = FALSE;
27   $handler->display->display_options['access']['type'] = 'perm';
28   $handler->display->display_options['cache']['type'] = 'none';
29   $handler->display->display_options['query']['type'] = 'views_query';
30   $handler->display->display_options['exposed_form']['type'] = 'basic';
31   $handler->display->display_options['pager']['type'] = 'full';
32   $handler->display->display_options['pager']['options']['items_per_page'] = '10';
33   $handler->display->display_options['style_plugin'] = 'default';
34   $handler->display->display_options['row_plugin'] = 'node';
35   /* Field: Content: Title */
36   $handler->display->display_options['fields']['title']['id'] = 'title';
37   $handler->display->display_options['fields']['title']['table'] = 'node';
38   $handler->display->display_options['fields']['title']['field'] = 'title';
39   $handler->display->display_options['fields']['title']['label'] = '';
40   $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
41   $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
42   /* Field: Content: Image */
43   $handler->display->display_options['fields']['field_image']['id'] = 'field_image';
44   $handler->display->display_options['fields']['field_image']['table'] = 'field_data_field_image';
45   $handler->display->display_options['fields']['field_image']['field'] = 'field_image';
46   $handler->display->display_options['fields']['field_image']['label'] = '';
47   $handler->display->display_options['fields']['field_image']['element_label_colon'] = FALSE;
48   $handler->display->display_options['fields']['field_image']['click_sort_column'] = 'fid';
49   $handler->display->display_options['fields']['field_image']['settings'] = array(
50     'image_style' => 'medium',
51     'image_link' => '',
52   );
53   $handler->display->display_options['fields']['field_image']['delta_offset'] = '0';
54   /* Field: Content: Subtitle */
55   $handler->display->display_options['fields']['field_subtitle']['id'] = 'field_subtitle';
56   $handler->display->display_options['fields']['field_subtitle']['table'] = 'field_data_field_subtitle';
57   $handler->display->display_options['fields']['field_subtitle']['field'] = 'field_subtitle';
58   $handler->display->display_options['fields']['field_subtitle']['label'] = '';
59   $handler->display->display_options['fields']['field_subtitle']['element_label_colon'] = FALSE;
60   /* Sort criterion: Content: Post date */
61   $handler->display->display_options['sorts']['created']['id'] = 'created';
62   $handler->display->display_options['sorts']['created']['table'] = 'node';
63   $handler->display->display_options['sorts']['created']['field'] = 'created';
64   $handler->display->display_options['sorts']['created']['order'] = 'DESC';
65   /* Filter criterion: Content: Published */
66   $handler->display->display_options['filters']['status']['id'] = 'status';
67   $handler->display->display_options['filters']['status']['table'] = 'node';
68   $handler->display->display_options['filters']['status']['field'] = 'status';
69   $handler->display->display_options['filters']['status']['value'] = 1;
70   $handler->display->display_options['filters']['status']['group'] = 1;
71   $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
72   /* Filter criterion: Content: Type */
73   $handler->display->display_options['filters']['type']['id'] = 'type';
74   $handler->display->display_options['filters']['type']['table'] = 'node';
75   $handler->display->display_options['filters']['type']['field'] = 'type';
76   $handler->display->display_options['filters']['type']['value'] = array(
77     'feature' => 'feature',
78   );
79
80   /* Display: Page */
81   $handler = $view->new_display('page', 'Page', 'page');
82   $handler->display->display_options['path'] = 'featured-news';
83
84   /* Display: Feed */
85   $handler = $view->new_display('feed', 'Feed', 'feed');
86   $handler->display->display_options['pager']['type'] = 'some';
87   $handler->display->display_options['style_plugin'] = 'rss';
88   $handler->display->display_options['row_plugin'] = 'node_rss';
89   $handler->display->display_options['path'] = 'featured-news.xml';
90   $handler->display->display_options['displays'] = array(
91     'default' => 'default',
92     'page' => 'page',
93   );
94
95   /* Display: Block */
96   $handler = $view->new_display('block', 'Block', 'block');
97   $handler->display->display_options['defaults']['pager'] = FALSE;
98   $handler->display->display_options['pager']['type'] = 'some';
99   $handler->display->display_options['pager']['options']['items_per_page'] = '5';
100   $handler->display->display_options['defaults']['style_plugin'] = FALSE;
101   $handler->display->display_options['style_plugin'] = 'default';
102   $handler->display->display_options['defaults']['style_options'] = FALSE;
103   $handler->display->display_options['defaults']['row_plugin'] = FALSE;
104   $handler->display->display_options['row_plugin'] = 'fields';
105   $handler->display->display_options['defaults']['row_options'] = FALSE;
106   $export['featured_news_blurbs'] = $view;
107
108   return $export;
109 }