stylizer.install 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * @file
  4. */
  5. /**
  6. * Schema for stylizer.
  7. */
  8. function stylizer_schema() {
  9. return stylizer_schema_1();
  10. }
  11. function stylizer_schema_1() {
  12. $schema = array();
  13. $schema['stylizer'] = array(
  14. 'description' => 'Customized stylizer styles created by administrative users.',
  15. 'export' => array(
  16. 'bulk export' => TRUE,
  17. 'export callback' => 'stylizer_style_export',
  18. 'can disable' => TRUE,
  19. 'identifier' => 'style',
  20. 'primary key' => 'sid',
  21. 'api' => array(
  22. 'owner' => 'stylizer',
  23. 'api' => 'stylizer',
  24. 'minimum_version' => 1,
  25. 'current_version' => 1,
  26. ),
  27. ),
  28. 'fields' => array(
  29. 'sid' => array(
  30. 'type' => 'serial',
  31. 'not null' => TRUE,
  32. 'no export' => TRUE,
  33. ),
  34. 'name' => array(
  35. 'type' => 'varchar',
  36. 'length' => '255',
  37. 'description' => 'Unique ID for this style. Used to identify it programmatically.',
  38. ),
  39. 'admin_title' => array(
  40. 'type' => 'varchar',
  41. 'length' => '255',
  42. 'description' => 'Human readable title for this style.',
  43. ),
  44. 'admin_description' => array(
  45. 'type' => 'text',
  46. 'size' => 'big',
  47. 'description' => 'Administrative description of this style.',
  48. 'object default' => '',
  49. ),
  50. 'settings' => array(
  51. 'type' => 'text',
  52. 'size' => 'big',
  53. 'serialize' => TRUE,
  54. 'object default' => array(),
  55. 'initial ' => array(
  56. 'name' => '_temporary',
  57. 'style_base' => NULL,
  58. 'palette' => array(),
  59. ),
  60. 'description' => 'A serialized array of settings specific to the style base that describes this plugin.',
  61. ),
  62. ),
  63. 'primary key' => array('sid'),
  64. 'unique keys' => array(
  65. 'name' => array('name'),
  66. ),
  67. );
  68. return $schema;
  69. }