accessibility_reporting.views_default.inc

  1. cis7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
  2. cle7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
  3. ecd7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
  4. elmsmedia7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
  5. harmony7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
  6. icor7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
  7. meedjum_blog7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
  8. mooc7 sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc

Functions

File

sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/views/accessibility_reporting.views_default.inc
View source
  1. <?php
  2. /**
  3. * Implements hook_views_default_views().
  4. */
  5. function accessibility_reporting_views_default_views() {
  6. $views = array();
  7. $view = new view();
  8. $view->name = 'accessibility_report';
  9. $view->description = '';
  10. $view->tag = 'default';
  11. $view->base_table = 'node';
  12. $view->human_name = 'Accessibility report';
  13. $view->core = 7;
  14. $view->api_version = '3.0';
  15. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  16. /* Display: Master */
  17. $handler = $view->new_display('default', 'Master', 'default');
  18. $handler->display->display_options['title'] = 'Accessibility report';
  19. $handler->display->display_options['use_more_always'] = FALSE;
  20. $handler->display->display_options['access']['type'] = 'perm';
  21. $handler->display->display_options['access']['perm'] = 'view acessibility reports';
  22. $handler->display->display_options['cache']['type'] = 'none';
  23. $handler->display->display_options['query']['type'] = 'views_query';
  24. $handler->display->display_options['exposed_form']['type'] = 'basic';
  25. $handler->display->display_options['pager']['type'] = 'full';
  26. $handler->display->display_options['pager']['options']['items_per_page'] = '10';
  27. $handler->display->display_options['style_plugin'] = 'table';
  28. $handler->display->display_options['style_options']['columns'] = array(
  29. 'title' => 'title',
  30. 'field' => 'field',
  31. 'name' => 'name',
  32. 'severity' => 'severity',
  33. 'total' => 'total',
  34. );
  35. $handler->display->display_options['style_options']['default'] = 'total';
  36. $handler->display->display_options['style_options']['info'] = array(
  37. 'title' => array(
  38. 'sortable' => 0,
  39. 'default_sort_order' => 'asc',
  40. 'align' => '',
  41. 'separator' => '',
  42. 'empty_column' => 0,
  43. ),
  44. 'field' => array(
  45. 'align' => '',
  46. 'separator' => '',
  47. 'empty_column' => 0,
  48. ),
  49. 'name' => array(
  50. 'sortable' => 1,
  51. 'default_sort_order' => 'asc',
  52. 'align' => '',
  53. 'separator' => '',
  54. 'empty_column' => 0,
  55. ),
  56. 'severity' => array(
  57. 'sortable' => 1,
  58. 'default_sort_order' => 'asc',
  59. 'align' => '',
  60. 'separator' => '',
  61. 'empty_column' => 0,
  62. ),
  63. 'total' => array(
  64. 'sortable' => 1,
  65. 'default_sort_order' => 'desc',
  66. 'align' => '',
  67. 'separator' => '',
  68. 'empty_column' => 0,
  69. ),
  70. );
  71. /* Relationship: Content: Accessibility report results */
  72. $handler->display->display_options['relationships']['accessibility_reporting_base_left_node']['id'] = 'accessibility_reporting_base_left_node';
  73. $handler->display->display_options['relationships']['accessibility_reporting_base_left_node']['table'] = 'node';
  74. $handler->display->display_options['relationships']['accessibility_reporting_base_left_node']['field'] = 'accessibility_reporting_base_left_node';
  75. /* Relationship: Accessibility reporting: Accessibility test */
  76. $handler->display->display_options['relationships']['accessibility_test']['id'] = 'accessibility_test';
  77. $handler->display->display_options['relationships']['accessibility_test']['table'] = 'accessibility_reporting';
  78. $handler->display->display_options['relationships']['accessibility_test']['field'] = 'accessibility_test';
  79. $handler->display->display_options['relationships']['accessibility_test']['relationship'] = 'accessibility_reporting_base_left_node';
  80. /* Field: Content: Title */
  81. $handler->display->display_options['fields']['title']['id'] = 'title';
  82. $handler->display->display_options['fields']['title']['table'] = 'node';
  83. $handler->display->display_options['fields']['title']['field'] = 'title';
  84. $handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
  85. $handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
  86. /* Field: Accessibility reporting: Responsible field */
  87. $handler->display->display_options['fields']['field']['id'] = 'field';
  88. $handler->display->display_options['fields']['field']['table'] = 'accessibility_reporting';
  89. $handler->display->display_options['fields']['field']['field'] = 'field';
  90. $handler->display->display_options['fields']['field']['relationship'] = 'accessibility_reporting_base_left_node';
  91. /* Field: Accessibility test: Name */
  92. $handler->display->display_options['fields']['name']['id'] = 'name';
  93. $handler->display->display_options['fields']['name']['table'] = 'accessibility_test';
  94. $handler->display->display_options['fields']['name']['field'] = 'name';
  95. $handler->display->display_options['fields']['name']['relationship'] = 'accessibility_test';
  96. $handler->display->display_options['fields']['name']['label'] = 'Accessibility test';
  97. /* Field: Accessibility test: Severity */
  98. $handler->display->display_options['fields']['severity']['id'] = 'severity';
  99. $handler->display->display_options['fields']['severity']['table'] = 'accessibility_test';
  100. $handler->display->display_options['fields']['severity']['field'] = 'severity';
  101. $handler->display->display_options['fields']['severity']['relationship'] = 'accessibility_test';
  102. /* Field: Accessibility reporting: Total errors */
  103. $handler->display->display_options['fields']['total']['id'] = 'total';
  104. $handler->display->display_options['fields']['total']['table'] = 'accessibility_reporting';
  105. $handler->display->display_options['fields']['total']['field'] = 'total';
  106. $handler->display->display_options['fields']['total']['relationship'] = 'accessibility_reporting_base_left_node';
  107. /* Sort criterion: Content: Post date */
  108. $handler->display->display_options['sorts']['created']['id'] = 'created';
  109. $handler->display->display_options['sorts']['created']['table'] = 'node';
  110. $handler->display->display_options['sorts']['created']['field'] = 'created';
  111. $handler->display->display_options['sorts']['created']['order'] = 'DESC';
  112. /* Sort criterion: Content: Title */
  113. $handler->display->display_options['sorts']['title']['id'] = 'title';
  114. $handler->display->display_options['sorts']['title']['table'] = 'node';
  115. $handler->display->display_options['sorts']['title']['field'] = 'title';
  116. /* Filter criterion: Content: Published */
  117. $handler->display->display_options['filters']['status']['id'] = 'status';
  118. $handler->display->display_options['filters']['status']['table'] = 'node';
  119. $handler->display->display_options['filters']['status']['field'] = 'status';
  120. $handler->display->display_options['filters']['status']['value'] = 1;
  121. $handler->display->display_options['filters']['status']['group'] = 1;
  122. $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
  123. /* Display: Page */
  124. $handler = $view->new_display('page', 'Page', 'page');
  125. $handler->display->display_options['path'] = 'accessibility/report';
  126. $translatables['accessibility_report'] = array(
  127. t('Master'),
  128. t('Accessibility report'),
  129. t('more'),
  130. t('Apply'),
  131. t('Reset'),
  132. t('Sort by'),
  133. t('Asc'),
  134. t('Desc'),
  135. t('Items per page'),
  136. t('- All -'),
  137. t('Offset'),
  138. t('« first'),
  139. t('‹ previous'),
  140. t('next ›'),
  141. t('last »'),
  142. t('Reporting'),
  143. t('Accessibility test'),
  144. t('Title'),
  145. t('Responsible field'),
  146. t('Severity'),
  147. t('Total errors'),
  148. t('.'),
  149. t(','),
  150. t('Page'),
  151. );
  152. $views[] = $view;
  153. return $views;
  154. }