Projet

Général

Profil

Paste
Télécharger (1,82 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ctools / stylizer / stylizer.install @ 6e3ce7c2

1
<?php
2

    
3
/**
4
 * @file
5
 */
6

    
7
/**
8
 * Schema for stylizer.
9
 */
10
function stylizer_schema() {
11
  return stylizer_schema_1();
12
}
13

    
14
function stylizer_schema_1() {
15
  $schema = array();
16

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

    
73
  return $schema;
74
}