summaryrefslogtreecommitdiff
path: root/sites/all/modules/ctools/stylizer/stylizer.install
blob: 5cefb0ddfb4d8c0ea461d61ee08e8ff7dd3a57fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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;
}