Project

General

Profile

Paste
Download (3.61 KB) Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / ctools / views_content / tests / modules / views_content_test.views_default.inc @ 6e3ce7c2

1 6e3ce7c2 Assos Assos
<?php
2
3
/**
4
 * @file
5
 * Tests views.
6
 */
7
8
/**
9
 * Implements hook_views_default_views().
10
 */
11
function views_content_test_views_default_views() {
12
  $view = new view();
13
  $view->name = 'views_content_more_link';
14
  $view->description = '';
15
  $view->tag = 'default';
16
  $view->base_table = 'node';
17
  $view->human_name = 'views_content_more_link';
18
  $view->core = 7;
19
  $view->api_version = '3.0';
20
  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
21
22
  /* Display: Master */
23
  $handler = $view->new_display('default', 'Master', 'default');
24
  $handler->display->display_options['title'] = 'views_content_more_link';
25
  $handler->display->display_options['use_more'] = TRUE;
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'] = 'none';
32
  $handler->display->display_options['pager']['options']['offset'] = '0';
33
  $handler->display->display_options['style_plugin'] = 'table';
34
  $handler->display->display_options['style_options']['columns'] = array(
35
    'title' => 'title',
36
  );
37
  $handler->display->display_options['style_options']['class'] = '';
38
  $handler->display->display_options['style_options']['default'] = '-1';
39
  $handler->display->display_options['style_options']['info'] = array(
40
    'title' => array(
41
      'sortable' => 0,
42
      'default_sort_order' => 'asc',
43
      'align' => '',
44
      'separator' => '',
45
      'empty_column' => 0,
46
    ),
47
  );
48
  /* Field: Content: Title */
49
  $handler->display->display_options['fields']['title']['id'] = 'title';
50
  $handler->display->display_options['fields']['title']['table'] = 'node';
51
  $handler->display->display_options['fields']['title']['field'] = 'title';
52
  $handler->display->display_options['fields']['title']['label'] = '';
53
  $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
54
  $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
55
  /* Sort criterion: Content: Post date */
56
  $handler->display->display_options['sorts']['created']['id'] = 'created';
57
  $handler->display->display_options['sorts']['created']['table'] = 'node';
58
  $handler->display->display_options['sorts']['created']['field'] = 'created';
59
  $handler->display->display_options['sorts']['created']['order'] = 'DESC';
60
  /* Filter criterion: Content: Published status */
61
  $handler->display->display_options['filters']['status']['id'] = 'status';
62
  $handler->display->display_options['filters']['status']['table'] = 'node';
63
  $handler->display->display_options['filters']['status']['field'] = 'status';
64
  $handler->display->display_options['filters']['status']['value'] = 1;
65
  $handler->display->display_options['filters']['status']['group'] = 1;
66
  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
67
68
  /* Display: Page */
69
  $handler = $view->new_display('page', 'Page', 'page');
70
  $handler->display->display_options['path'] = 'views-content-more-link';
71
72
  /* Display: Content pane */
73
  $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1');
74
  $handler->display->display_options['defaults']['pager'] = FALSE;
75
  $handler->display->display_options['pager']['type'] = 'some';
76
  $handler->display->display_options['pager']['options']['items_per_page'] = '3';
77
  $handler->display->display_options['pager']['options']['offset'] = '0';
78
79
  $views[$view->name] = $view;
80
81
  return $views;
82
}