| Commit | Line | Data |
|---|---|---|
| a40482ac | 1 | <?php |
| a40482ac SB |
2 | |
| 3 | /** | |
| 4 | * Schema for stylizer. | |
| 5 | */ | |
| 6 | function stylizer_schema() { | |
| 7 | return stylizer_schema_1(); | |
| 8 | } | |
| 9 | ||
| 10 | function stylizer_schema_1() { | |
| 11 | $schema = array(); | |
| 12 | ||
| 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 | ), | |
| 22 | 'fields' => array( | |
| 23 | 'sid' => array( | |
| 24 | 'type' => 'serial', | |
| 25 | 'not null' => TRUE, | |
| 26 | 'no export' => TRUE, | |
| 27 | ), | |
| 28 | 'name' => array( | |
| 29 | 'type' => 'varchar', | |
| 30 | 'length' => '255', | |
| 31 | 'description' => 'Unique ID for this style. Used to identify it programmatically.', | |
| 32 | ), | |
| 33 | 'admin_title' => array( | |
| 34 | 'type' => 'varchar', | |
| 35 | 'length' => '255', | |
| 36 | 'description' => 'Human readable title for this style.', | |
| 37 | ), | |
| 38 | 'admin_description' => array( | |
| 39 | 'type' => 'text', | |
| 40 | 'size' => 'big', | |
| 41 | 'description' => 'Administrative description of this style.', | |
| 42 | 'object default' => '', | |
| 43 | ), | |
| 44 | 'settings' => array( | |
| 45 | 'type' => 'text', | |
| 46 | 'size' => 'big', | |
| 47 | 'serialize' => TRUE, | |
| 48 | 'object default' => array(), | |
| 49 | 'initial ' => array( | |
| 50 | 'name' => '_temporary', | |
| 51 | 'style_base' => NULL, | |
| 52 | 'palette' => array(), | |
| 53 | ), | |
| 54 | 'description' => 'A serialized array of settings specific to the style base that describes this plugin.', | |
| 55 | ), | |
| 56 | ), | |
| 57 | 'primary key' => array('sid'), | |
| 58 | 'unique keys' => array( | |
| 59 | 'name' => array('name'), | |
| 60 | ), | |
| 61 | ); | |
| 62 | ||
| 63 | return $schema; | |
| 64 | } |