accessibility.views.inc

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

Providing extra functionality for views.

Functions

Namesort descending Description
accessibility_views_data @file Providing extra functionality for views.

File

sites/all/modules/ulmus/accessibility/views/accessibility.views.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Providing extra functionality for views.
  5. */
  6. function accessibility_views_data() {
  7. // Define the base group of this table.
  8. $data['accessibility_test']['table']['group'] = t('Accessibility test');
  9. // Advertise this table as a possible base table
  10. $data['accessibility_test']['table']['base'] = array(
  11. 'field' => 'test_id',
  12. 'title' => t('Accessibility test'),
  13. 'weight' => -10,
  14. );
  15. $data['accessibility_test']['table']['entity type'] = 'accessibility_test';
  16. $data['accessibility_test']['test_id'] = array(
  17. 'title' => t('Test ID'),
  18. 'help' => t('The test ID.'),
  19. 'field' => array(
  20. 'handler' => 'views_handler_field_numeric',
  21. 'click sortable' => TRUE,
  22. ),
  23. 'argument' => array(
  24. 'handler' => 'views_handler_argument_numeric',
  25. 'numeric' => TRUE,
  26. ),
  27. 'filter' => array(
  28. 'handler' => 'views_handler_filter_numeric',
  29. ),
  30. 'sort' => array(
  31. 'handler' => 'views_handler_sort',
  32. ),
  33. );
  34. $data['accessibility_test']['name'] = array(
  35. 'title' => t('Name'),
  36. 'help' => t('The test name.'),
  37. 'field' => array(
  38. 'handler' => 'views_handler_field',
  39. 'click sortable' => TRUE,
  40. ),
  41. 'argument' => array(
  42. 'handler' => 'views_handler_argument_string',
  43. 'numeric' => TRUE,
  44. ),
  45. 'filter' => array(
  46. 'handler' => 'views_handler_filter_in_operator',
  47. 'options callback' => 'relation_get_types_options',
  48. ),
  49. 'sort' => array(
  50. 'handler' => 'views_handler_sort',
  51. ),
  52. );
  53. $data['accessibility_test']['severity'] = array(
  54. 'title' => t('Severity'),
  55. 'help' => t('The severity level of the test.'),
  56. 'field' => array(
  57. 'handler' => 'views_handler_field',
  58. 'click sortable' => TRUE,
  59. ),
  60. 'argument' => array(
  61. 'handler' => 'views_handler_argument_string',
  62. 'numeric' => TRUE,
  63. ),
  64. 'filter' => array(
  65. 'handler' => 'views_handler_filter_in_operator',
  66. 'options callback' => 'relation_get_types_options',
  67. ),
  68. 'sort' => array(
  69. 'handler' => 'views_handler_sort',
  70. ),
  71. );
  72. $data['accessibility_test']['quail_name'] = array(
  73. 'title' => t('QUAIL Name'),
  74. 'help' => t('The name of the QUAIL test to be called.'),
  75. 'field' => array(
  76. 'handler' => 'views_handler_field',
  77. 'click sortable' => TRUE,
  78. ),
  79. 'argument' => array(
  80. 'handler' => 'views_handler_argument_string',
  81. 'numeric' => TRUE,
  82. ),
  83. 'filter' => array(
  84. 'handler' => 'views_handler_filter_in_operator',
  85. 'options callback' => 'relation_get_types_options',
  86. ),
  87. 'sort' => array(
  88. 'handler' => 'views_handler_sort',
  89. ),
  90. );
  91. $data['accessibility_test']['status'] = array(
  92. 'field' => array(
  93. 'title' => t('Test status'),
  94. 'help' => t('Show the status of the test.'),
  95. 'handler' => 'accessibility_handler_status',
  96. ),
  97. );
  98. $data['accessibility_test']['link_accessibility'] = array(
  99. 'field' => array(
  100. 'title' => t('Link'),
  101. 'help' => t('Provide a link to the test.'),
  102. 'handler' => 'accessibility_handler_link_field',
  103. ),
  104. );
  105. $data['accessibility_test']['edit_accessibility'] = array(
  106. 'field' => array(
  107. 'title' => t('Edit Link'),
  108. 'help' => t('Provide a link to the edit form for the accessibility.'),
  109. 'handler' => 'accessibility_handler_edit_link_field',
  110. ),
  111. );
  112. $data['accessibility_test']['delete_accessibility'] = array(
  113. 'field' => array(
  114. 'title' => t('Delete Link'),
  115. 'help' => t('Provide a link to delete the accessibility.'),
  116. 'handler' => 'accessibility_handler_delete_link_field',
  117. ),
  118. );
  119. return $data;
  120. }
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.