| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function node_lock_install() {
|
| 8 |
drupal_install_schema('node_lock');
|
| 9 |
}
|
| 10 |
|
| 11 |
/**
|
| 12 |
* Implementation of hook_uninstall().
|
| 13 |
*/
|
| 14 |
function node_lock_uninstall() {
|
| 15 |
drupal_uninstall_schema('node_lock');
|
| 16 |
}
|
| 17 |
|
| 18 |
/**
|
| 19 |
* Implementation of hook_schema().
|
| 20 |
*/
|
| 21 |
function node_lock_schema() {
|
| 22 |
$schema['node_lock'] = array(
|
| 23 |
'fields' => array(
|
| 24 |
'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
|
| 25 |
'locked' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
|
| 26 |
),
|
| 27 |
'primary key' => array('vid'),
|
| 28 |
);
|
| 29 |
|
| 30 |
return $schema;
|
| 31 |
}
|