| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function virtual_site_install() {
|
| 8 |
drupal_install_schema('virtual_site');
|
| 9 |
}
|
| 10 |
|
| 11 |
/**
|
| 12 |
* Implementation of hook_uninstall().
|
| 13 |
*/
|
| 14 |
function virtual_site_uninstall() {
|
| 15 |
drupal_uninstall_schema('virtual_site');
|
| 16 |
}
|
| 17 |
|
| 18 |
/**
|
| 19 |
* Implementation of hook_schema().
|
| 20 |
*/
|
| 21 |
function virtual_site_schema() {
|
| 22 |
$schema['virtual_sites'] = array(
|
| 23 |
'fields' => array(
|
| 24 |
'sid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
|
| 25 |
'name' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE),
|
| 26 |
'weight' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 0),
|
| 27 |
'status' => array('type' => 'int', 'size' => 'tiny', 'not null' => TRUE, 'default' => 1),
|
| 28 |
'conditions' => array('type' => 'text', 'size' => 'big'),
|
| 29 |
'features' => array('type' => 'text', 'size' => 'big'),
|
| 30 |
),
|
| 31 |
'primary key' => array('sid'),
|
| 32 |
);
|
| 33 |
|
| 34 |
return $schema;
|
| 35 |
}
|
| 36 |
|
| 37 |
?>
|