fe_block.install 840 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * @file
  4. * Install, uninstall and schema hooks for the Features Extra Block module.
  5. */
  6. /**
  7. * Implements hook_schema().
  8. */
  9. function fe_block_schema() {
  10. $schema['fe_block_boxes'] = array(
  11. 'description' => '',
  12. 'export' => array(
  13. 'key' => 'machine_name',
  14. 'can disable' => FALSE,
  15. ),
  16. 'fields' => array(
  17. 'bid' => array(
  18. 'type' => 'int',
  19. 'unsigned' => TRUE,
  20. 'not null' => TRUE,
  21. 'default' => 0,
  22. 'no export' => TRUE,
  23. ),
  24. 'machine_name' => array(
  25. 'description' => 'machine_name',
  26. 'type' => 'varchar',
  27. 'length' => 32,
  28. 'not null' => TRUE,
  29. 'default' => '',
  30. ),
  31. ),
  32. 'indexes' => array(
  33. 'machine_name' => array('machine_name'),
  34. ),
  35. 'primary key' => array('bid'),
  36. );
  37. return $schema;
  38. }