textauthor.install 845 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Implements hook_field_schema().
  4. */
  5. function textauthor_field_schema($field) {
  6. if($field['type'] == 'textauthor'){
  7. return array(
  8. 'columns' => array(
  9. 'value' => array(
  10. 'type' => 'text',
  11. 'size' => 'big',
  12. 'not null' => FALSE,
  13. ),
  14. 'author' => array(
  15. 'type' => 'varchar',
  16. 'length' => 255,
  17. 'not null' => FALSE,
  18. 'sortable' => TRUE
  19. ),
  20. 'format' => array(
  21. 'type' => 'varchar',
  22. 'length' => 255,
  23. 'not null' => FALSE,
  24. ),
  25. ),
  26. 'indexes' => array(
  27. 'format' => array('format'),
  28. ),
  29. 'foreign keys' => array(
  30. 'format' => array(
  31. 'table' => 'filter_format',
  32. 'columns' => array('format' => 'format'),
  33. ),
  34. ),
  35. );
  36. }
  37. }