1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
/**
|
4 |
|
|
* @file
|
5 |
|
|
* Install, update and uninstall functions for the node_access_test module.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
/**
|
9 |
|
|
* Implements hook_schema().
|
10 |
|
|
*/
|
11 |
|
|
function node_access_test_schema() {
|
12 |
|
|
$schema['node_access_test'] = array(
|
13 |
|
|
'description' => 'The base table for node_access_test.',
|
14 |
|
|
'fields' => array(
|
15 |
|
|
'nid' => array(
|
16 |
|
|
'description' => 'The {node}.nid this record affects.',
|
17 |
|
|
'type' => 'int',
|
18 |
|
|
'unsigned' => TRUE,
|
19 |
|
|
'not null' => TRUE,
|
20 |
|
|
'default' => 0,
|
21 |
|
|
),
|
22 |
|
|
'private' => array(
|
23 |
|
|
'description' => 'Boolean indicating whether the node is private (visible to administrator) or not (visible to non-administrators).',
|
24 |
|
|
'type' => 'int',
|
25 |
|
|
'not null' => TRUE,
|
26 |
|
|
'default' => 0,
|
27 |
|
|
),
|
28 |
|
|
),
|
29 |
|
|
'indexes' => array(
|
30 |
|
|
'nid' => array('nid'),
|
31 |
|
|
),
|
32 |
|
|
'primary key' => array('nid'),
|
33 |
|
|
'foreign keys' => array(
|
34 |
|
|
'versioned_node' => array(
|
35 |
|
|
'table' => 'node',
|
36 |
|
|
'columns' => array('nid' => 'nid'),
|
37 |
|
|
),
|
38 |
|
|
),
|
39 |
|
|
);
|
40 |
|
|
|
41 |
|
|
return $schema;
|
42 |
|
|
} |