-
Notifications
You must be signed in to change notification settings - Fork 0
/
motionsplan_search.views_default.inc
108 lines (103 loc) · 5.57 KB
/
motionsplan_search.views_default.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<?php
/**
* @file
* motionsplan_search.views_default.inc
*/
/**
* Implements hook_views_default_views().
*/
function motionsplan_search_views_default_views() {
$export = array();
$view = new view();
$view->name = 'exercise_search';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'search_api_index_exercises';
$view->human_name = 'Exercise Search';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Exercise Search';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '10';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
'field_exercise_images' => 'field_exercise_images',
'title' => 'title',
'field_exercise_intro' => 'title',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'field_exercise_images' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
'title' => array(
'align' => '',
'separator' => '<br>',
'empty_column' => 0,
),
'field_exercise_intro' => array(
'align' => '',
'separator' => '',
'empty_column' => 0,
),
);
/* Field: Indexed Node: Billeder af øvelsen */
$handler->display->display_options['fields']['field_exercise_images']['id'] = 'field_exercise_images';
$handler->display->display_options['fields']['field_exercise_images']['table'] = 'search_api_index_exercises';
$handler->display->display_options['fields']['field_exercise_images']['field'] = 'field_exercise_images';
$handler->display->display_options['fields']['field_exercise_images']['label'] = '';
$handler->display->display_options['fields']['field_exercise_images']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['field_exercise_images']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_exercise_images']['settings'] = array(
'image_style' => 'thumbnail',
'image_link' => 'content',
);
$handler->display->display_options['fields']['field_exercise_images']['delta_limit'] = '1';
$handler->display->display_options['fields']['field_exercise_images']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_exercise_images']['delta_first_last'] = TRUE;
$handler->display->display_options['fields']['field_exercise_images']['separator'] = ' ';
/* Field: Indexed Node: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'search_api_index_exercises';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['title']['link_to_entity'] = 1;
/* Field: Indexed Node: Introduktion til øvelse */
$handler->display->display_options['fields']['field_exercise_intro']['id'] = 'field_exercise_intro';
$handler->display->display_options['fields']['field_exercise_intro']['table'] = 'search_api_index_exercises';
$handler->display->display_options['fields']['field_exercise_intro']['field'] = 'field_exercise_intro';
$handler->display->display_options['fields']['field_exercise_intro']['label'] = '';
$handler->display->display_options['fields']['field_exercise_intro']['element_label_colon'] = FALSE;
/* Filter criterion: Search: Fulltext search */
$handler->display->display_options['filters']['search_api_views_fulltext']['id'] = 'search_api_views_fulltext';
$handler->display->display_options['filters']['search_api_views_fulltext']['table'] = 'search_api_index_exercises';
$handler->display->display_options['filters']['search_api_views_fulltext']['field'] = 'search_api_views_fulltext';
$handler->display->display_options['filters']['search_api_views_fulltext']['exposed'] = TRUE;
$handler->display->display_options['filters']['search_api_views_fulltext']['expose']['operator_id'] = 'search_api_views_fulltext_op';
$handler->display->display_options['filters']['search_api_views_fulltext']['expose']['label'] = 'Search';
$handler->display->display_options['filters']['search_api_views_fulltext']['expose']['operator'] = 'search_api_views_fulltext_op';
$handler->display->display_options['filters']['search_api_views_fulltext']['expose']['identifier'] = 'search_api_views_fulltext';
$handler->display->display_options['filters']['search_api_views_fulltext']['expose']['remember_roles'] = array(
2 => '2',
1 => 0,
);
$handler->display->display_options['filters']['search_api_views_fulltext']['fields'] = array(
'title' => 'title',
);
/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'exercise-search';
$export['exercise_search'] = $view;
return $export;
}