accessibility_reporting.install

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

Functions

Namesort descending Description
accessibility_reporting_schema Implements hook_schema().

File

sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/accessibility_reporting.install
View source
  1. <?php
  2. /**
  3. * Implements hook_schema().
  4. */
  5. function accessibility_reporting_schema() {
  6. $schema = array();
  7. $schema['accessibility_reporting'] = array(
  8. 'description' => 'Accessibility reporting.',
  9. 'fields' => array(
  10. 'test_id' => array(
  11. 'description' => 'Entity of accessibility test.',
  12. 'type' => 'serial',
  13. 'unsigned' => TRUE,
  14. 'not null' => TRUE,
  15. ),
  16. 'entity_type' => array(
  17. 'description' => 'The type of entity with the error.',
  18. 'type' => 'varchar',
  19. 'length' => 32,
  20. 'not null' => TRUE,
  21. 'default' => '',
  22. ),
  23. 'bundle' => array(
  24. 'description' => 'The bundle of the entity type.',
  25. 'type' => 'varchar',
  26. 'length' => 32,
  27. 'not null' => TRUE,
  28. 'default' => '',
  29. ),
  30. 'entity_id' => array(
  31. 'description' => 'The name of the test - a human-readable identifier.',
  32. 'type' => 'int',
  33. 'unsigned' => TRUE,
  34. 'not null' => TRUE,
  35. ),
  36. 'field' => array(
  37. 'description' => 'The field with the error.',
  38. 'type' => 'varchar',
  39. 'length' => 255,
  40. 'not null' => TRUE,
  41. 'default' => '',
  42. ),
  43. 'total' => array(
  44. 'description' => 'Total errors found.',
  45. 'type' => 'int',
  46. 'unsigned' => TRUE,
  47. 'not null' => TRUE,
  48. ),
  49. 'data' => array(
  50. 'type' => 'blob',
  51. 'not null' => FALSE,
  52. 'size' => 'big',
  53. 'serialize' => TRUE,
  54. 'description' => 'A serialized array of additional data.',
  55. ),
  56. ),
  57. 'indexes' => array(
  58. 'test_id' => array('test_id'),
  59. 'entity' => array('entity_type', 'entity_id'),
  60. ),
  61. 'foreign keys' => array(
  62. 'accessibility_test' => array(
  63. 'table' => 'accessibility_test',
  64. 'columns' => array('test_id' => 'test_id'),
  65. ),
  66. ),
  67. );
  68. return $schema;
  69. }