Mercurial > hg > rr-repo
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sites/all/modules/ctools/stylizer/stylizer.install Wed Aug 21 18:51:11 2013 +0100 @@ -0,0 +1,70 @@ +<?php + +/** + * Schema for stylizer. + */ +function stylizer_schema() { + return stylizer_schema_1(); +} + +function stylizer_schema_1() { + $schema = array(); + + $schema['stylizer'] = array( + 'description' => 'Customized stylizer styles created by administrative users.', + 'export' => array( + 'bulk export' => TRUE, + 'export callback' => 'stylizer_style_export', + 'can disable' => TRUE, + 'identifier' => 'style', + 'primary key' => 'sid', + 'api' => array( + 'owner' => 'stylizer', + 'api' => 'stylizer', + 'minimum_version' => 1, + 'current_version' => 1, + ), + ), + 'fields' => array( + 'sid' => array( + 'type' => 'serial', + 'not null' => TRUE, + 'no export' => TRUE, + ), + 'name' => array( + 'type' => 'varchar', + 'length' => '255', + 'description' => 'Unique ID for this style. Used to identify it programmatically.', + ), + 'admin_title' => array( + 'type' => 'varchar', + 'length' => '255', + 'description' => 'Human readable title for this style.', + ), + 'admin_description' => array( + 'type' => 'text', + 'size' => 'big', + 'description' => 'Administrative description of this style.', + 'object default' => '', + ), + 'settings' => array( + 'type' => 'text', + 'size' => 'big', + 'serialize' => TRUE, + 'object default' => array(), + 'initial ' => array( + 'name' => '_temporary', + 'style_base' => NULL, + 'palette' => array(), + ), + 'description' => 'A serialized array of settings specific to the style base that describes this plugin.', + ), + ), + 'primary key' => array('sid'), + 'unique keys' => array( + 'name' => array('name'), + ), + ); + + return $schema; +}