1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* @file
|
5
|
* View definition webform_analysis.
|
6
|
*/
|
7
|
|
8
|
// --- Paste exported view below ---.
|
9
|
$view = new view();
|
10
|
$view->name = 'webform_analysis';
|
11
|
$view->description = 'Limit submissions for the webform node\'s analysis. Query must have sid as a field. Don\'t duplicate sids in result.';
|
12
|
$view->tag = 'webform';
|
13
|
$view->base_table = 'webform_submissions';
|
14
|
$view->human_name = 'Webform Analysis';
|
15
|
$view->core = 7;
|
16
|
$view->api_version = '3.0';
|
17
|
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
18
|
|
19
|
/* Display: Master */
|
20
|
$handler = $view->new_display('default', 'Master', 'default');
|
21
|
$handler->display->display_options['use_more_always'] = FALSE;
|
22
|
$handler->display->display_options['access']['type'] = 'none';
|
23
|
$handler->display->display_options['cache']['type'] = 'none';
|
24
|
$handler->display->display_options['query']['type'] = 'views_query';
|
25
|
$handler->display->display_options['query']['options']['distinct'] = TRUE;
|
26
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
27
|
$handler->display->display_options['pager']['type'] = 'none';
|
28
|
$handler->display->display_options['pager']['options']['offset'] = '0';
|
29
|
$handler->display->display_options['style_plugin'] = 'default';
|
30
|
$handler->display->display_options['row_plugin'] = 'fields';
|
31
|
/* Field: Webform submissions: Sid */
|
32
|
$handler->display->display_options['fields']['sid']['id'] = 'sid';
|
33
|
$handler->display->display_options['fields']['sid']['table'] = 'webform_submissions';
|
34
|
$handler->display->display_options['fields']['sid']['field'] = 'sid';
|
35
|
/* Contextual filter: Webform submissions: Node */
|
36
|
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
|
37
|
$handler->display->display_options['arguments']['nid']['table'] = 'webform_submissions';
|
38
|
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
|
39
|
$handler->display->display_options['arguments']['nid']['default_action'] = 'empty';
|
40
|
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
|
41
|
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
|
42
|
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
|
43
|
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
|
44
|
$translatables['webform_analysis'] = array(
|
45
|
t('Master'),
|
46
|
t('more'),
|
47
|
t('Apply'),
|
48
|
t('Reset'),
|
49
|
t('Sort by'),
|
50
|
t('Asc'),
|
51
|
t('Desc'),
|
52
|
t('Sid'),
|
53
|
t('.'),
|
54
|
t(','),
|
55
|
t('All'),
|
56
|
);
|
57
|
|
58
|
// --- Paste exported view above ---.
|
59
|
$views[$view->name] = $view;
|