stylizer.install 1.8 KB

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