Added missing modules, including some as submodules.
[yaffs-website] / web / modules / contrib / draggableviews / draggableviews.install
1 <?php
2
3 /**
4  * @file
5  * Install, update and uninstall functions for the draggableviews module.
6  */
7
8 /**
9  * Implements hook_schema().
10  */
11 function draggableviews_schema() {
12   $schema['draggableviews_structure'] = array(
13     'description' => 'Table that contains logs of all system events.',
14     'fields' => array(
15       'dvid' => array(
16         'type' => 'serial',
17         'unsigned' => TRUE,
18         'not null' => TRUE,
19         'description' => 'The primary identifier.',
20       ),
21       'view_name' => array(
22         'type' => 'varchar',
23         'length' => 128,
24         'not null' => TRUE,
25         'default' => '',
26         'description' => 'Makes the order unique for each view.',
27       ),
28       'view_display' => array(
29         'type' => 'varchar',
30         'length' => 64,
31         'not null' => TRUE,
32         'default' => '',
33         'description' => 'Makes the order unique for each view display.',
34       ),
35       'args' => array(
36         'type' => 'varchar',
37         'length' => 255,
38         'not null' => FALSE,
39         'default' => '',
40         'description' => 'Makes the order unique for a given set of arguments',
41       ),
42       'entity_id' => array(
43         'type' => 'int',
44         'unsigned' => TRUE,
45         'not null' => TRUE,
46         'description' => 'Id of the entity that we are sorting (node, user, etc.).',
47       ),
48       'weight' => array(
49         'type' => 'int',
50         'unsigned' => FALSE,
51         'not null' => TRUE,
52         'default' => 0,
53         'description' => 'The order weight.',
54       ),
55       'parent' => array(
56         'type' => 'int',
57         'unsigned' => FALSE,
58         'not null' => TRUE,
59         'default' => 0,
60         'description' => 'The id of the parent.',
61       ),
62     ),
63     'indexes' => array(
64       'view' => array('view_name', 'view_display', 'args', 'entity_id'),
65       'weight' => array('weight'),
66       'entity_id' => array('entity_id'),
67     ),
68     'primary key' => array('dvid'),
69   );
70
71   return $schema;
72 }