workflowfield.install 776 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @file
  4. * Installs, updates and uninstalls functions for the list module.
  5. */
  6. /**
  7. * Implements hook_field_schema().
  8. *
  9. * This schema is copied from workflow.install, $schema['workflow_node'] .
  10. */
  11. function workflowfield_field_schema($field) {
  12. $columns = array(
  13. 'value' => array(
  14. 'description' => 'The {workflow_states}.sid that this node is currently in.',
  15. 'type' => 'int',
  16. 'unsigned' => TRUE,
  17. 'not null' => TRUE,
  18. 'default' => 0,
  19. 'disp-width' => '10',
  20. ),
  21. );
  22. return array(
  23. 'columns' => $columns,
  24. /*
  25. // 'primary key' => array('nid'),
  26. // 'indexes' => array(
  27. // 'nid' => array('nid', 'sid'),
  28. // ),
  29. */
  30. 'indexes' => array(
  31. 'value' => array('value'),
  32. ),
  33. );
  34. }