| 1 |
<?php
|
| 2 |
// $Id: revision_moderation.install,v 1.5 2008/07/31 17:29:58 westwesterson Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_schema().
|
| 6 |
*/
|
| 7 |
function revision_moderation_schema() {
|
| 8 |
$schema['revision_moderation'] = array(
|
| 9 |
'fields' => array(
|
| 10 |
'nid' => array(
|
| 11 |
'type' => 'int',
|
| 12 |
'unsigned' => TRUE,
|
| 13 |
'not null' => TRUE,
|
| 14 |
'default' => 0
|
| 15 |
),
|
| 16 |
'revision_moderation' => array(
|
| 17 |
'type' => 'int',
|
| 18 |
'not null' => TRUE,
|
| 19 |
'default' => 0,
|
| 20 |
'size' => 'tiny'
|
| 21 |
),
|
| 22 |
),
|
| 23 |
'primary key' => array('nid'),
|
| 24 |
);
|
| 25 |
|
| 26 |
return $schema;
|
| 27 |
}
|
| 28 |
|
| 29 |
/**
|
| 30 |
* Implementation of hook_install().
|
| 31 |
*/
|
| 32 |
function revision_moderation_install() {
|
| 33 |
// Create table
|
| 34 |
drupal_install_schema('revision_moderation');
|
| 35 |
}
|
| 36 |
|
| 37 |
/**
|
| 38 |
* Implementation of hook_uninstall().
|
| 39 |
*/
|
| 40 |
function revision_moderation_uninstall() {
|
| 41 |
// Drop the table
|
| 42 |
drupal_uninstall_schema('revision_moderation');
|
| 43 |
variable_del('revision_moderation_exempt');
|
| 44 |
}
|