Mercurial > hg > rr-repo
comparison sites/all/modules/ctools/stylizer/stylizer.install @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ff03f76ab3fe |
---|---|
1 <?php | |
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 '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 | |
69 return $schema; | |
70 } |