| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_schema().
|
| 6 |
*/
|
| 7 |
function cssapi_schema() {
|
| 8 |
$schema['cssapi'] = array(
|
| 9 |
'fields' => array(
|
| 10 |
'vid' => array('type' => 'serial', 'not null' => 1, 'disp-width' => '10'),
|
| 11 |
'timestamp' => array('type' => 'int', 'not null' => 1, 'disp-width' => '12'),
|
| 12 |
'sheet' => array('type' => 'varchar', 'length' => '128', 'not null' => 1),
|
| 13 |
'content' => array('type' => 'text', 'size' => 'big', 'not null' => 1)),
|
| 14 |
'primary key' => array('vid'),
|
| 15 |
'indexes' => array(
|
| 16 |
'sheet' => array('sheet')),
|
| 17 |
);
|
| 18 |
return $schema;
|
| 19 |
}
|
| 20 |
|
| 21 |
/**
|
| 22 |
* Implementation of hook_install()
|
| 23 |
*/
|
| 24 |
function cssapi_install() {
|
| 25 |
drupal_install_schema('cssapi');
|
| 26 |
}
|
| 27 |
|
| 28 |
/**
|
| 29 |
* Implementation of hook_uninstall()
|
| 30 |
*/
|
| 31 |
function cssapi_uninstall() {
|
| 32 |
drupal_uninstall_schema('cssapi');
|
| 33 |
}
|
| 34 |
|
| 35 |
|
| 36 |
/**
|
| 37 |
* Implementation of hook_disable().
|
| 38 |
*/
|
| 39 |
function cssapi_disable() {
|
| 40 |
// nothing yet
|
| 41 |
}
|