pathauto_i18n.install 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the Pathauto i18n module.
  5. */
  6. /**
  7. * Implements hook_schema().
  8. */
  9. function pathauto_i18n_schema() {
  10. $schema['pathauto_i18n'] = array(
  11. 'description' => 'Stores entity config for pathauto i18n.',
  12. 'fields' => array(
  13. 'entity_id' => array(
  14. 'description' => 'The entity id this data is attached to.',
  15. 'type' => 'int',
  16. 'unsigned' => TRUE,
  17. 'not null' => TRUE,
  18. ),
  19. 'entity_type' => array(
  20. 'description' => 'The entity type this data is attached to.',
  21. 'type' => 'varchar',
  22. 'length' => 128,
  23. 'not null' => TRUE,
  24. 'default' => '',
  25. ),
  26. 'bundle' => array(
  27. 'description' => 'Bundle to which this row belongs.',
  28. 'type' => 'varchar',
  29. 'length' => 128,
  30. 'not null' => TRUE,
  31. 'default' => '',
  32. ),
  33. 'path_status' => array(
  34. 'description' => 'Boolean indicating turned on pathauto i18n.',
  35. 'type' => 'int',
  36. 'not null' => FALSE,
  37. 'default' => 0,
  38. 'size' => 'tiny',
  39. ),
  40. ),
  41. 'primary key' => array('entity_id', 'entity_type'),
  42. );
  43. return $schema;
  44. }