| 1 |
<?php
|
| 2 |
// $Id: node_access_example.install,v 1.7 2008/10/11 14:22:53 weitzman Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function node_access_example_install() {
|
| 8 |
drupal_install_schema('node_access_example');
|
| 9 |
}
|
| 10 |
|
| 11 |
/**
|
| 12 |
* Implementation of hook_uninstall().
|
| 13 |
*/
|
| 14 |
function node_access_example_uninstall() {
|
| 15 |
drupal_uninstall_schema('node_access_example');
|
| 16 |
}
|
| 17 |
|
| 18 |
/**
|
| 19 |
* Implementation of hook_schema().
|
| 20 |
*/
|
| 21 |
function node_access_example_schema() {
|
| 22 |
$schema['node_access_example'] = array(
|
| 23 |
'description' => 'Example table for node_access_example module',
|
| 24 |
'fields' => array(
|
| 25 |
'nid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
|
| 26 |
'private' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
|
| 27 |
),
|
| 28 |
'primary key' => array('nid'),
|
| 29 |
);
|
| 30 |
|
| 31 |
return $schema;
|
| 32 |
}
|