forked from Gizra/pluggable_node_access
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpluggable_node_access.install
54 lines (50 loc) · 1.52 KB
/
pluggable_node_access.install
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
<?php
/**
* @file
* Install, update, and uninstall functions for the Organic groups arbitrary
* access module.
*/
/**
* Implements hook_schema()
*/
function pluggable_node_access_schema() {
$schema['pluggable_node_access'] = array(
'description' => 'An instance of a Pluggable node access.',
'fields' => array(
'id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'description' => 'The Unique ID of the Pluggable node access.',
),
'type' => array(
'description' => 'Reference to an Pluggable node access plugin.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
),
'timestamp' => array(
'description' => 'When the Pluggable node access instance was recorded.',
'type' => 'int',
'not null' => TRUE,
'unsigned' => TRUE,
),
'data' => array(
'description' => 'Serialized array with general data.',
'type' => 'text',
'serialize' => TRUE,
'size' => 'big',
),
),
'primary key' => array('id'),
'indexes' => array(
'type_index' => array('type'),
'timestamp' => array('timestamp'),
),
);
// Cache bins for Entity-cache module.
$cache_schema = drupal_get_schema_unprocessed('system', 'cache');
$schema["cache_entity_pluggable_node_access"] = $cache_schema;
$schema["cache_entity_pluggable_node_access"]['description'] = "Cache table used to store Pluggable node access entity records.";
return $schema;
}