| 1 |
<?php
|
| 2 |
// $Id: $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Database table schema definition.
|
| 6 |
*/
|
| 7 |
function css_schema() {
|
| 8 |
$schema['css'] = array(
|
| 9 |
'description' => t('CSS rules added to individual nodes.'),
|
| 10 |
'fields' => array(
|
| 11 |
'nid' => array(
|
| 12 |
'description' => t('The {node}.nid for the CSS.'),
|
| 13 |
'type' => 'int',
|
| 14 |
'unsigned' => TRUE,
|
| 15 |
'not null' => TRUE,
|
| 16 |
'default' => 0
|
| 17 |
),
|
| 18 |
'css' => array(
|
| 19 |
'description' => t('The primary identifier for the relation.'),
|
| 20 |
'type' => 'text',
|
| 21 |
'not null' => FALSE,
|
| 22 |
),
|
| 23 |
),
|
| 24 |
'primary key' => array('nid'),
|
| 25 |
);
|
| 26 |
return $schema;
|
| 27 |
}
|
| 28 |
|
| 29 |
|
| 30 |
/**
|
| 31 |
* Implementation of hook_install().
|
| 32 |
*/
|
| 33 |
function css_install() {
|
| 34 |
drupal_install_schema('css');
|
| 35 |
}
|
| 36 |
|
| 37 |
|
| 38 |
/**
|
| 39 |
* Implementation of hook_uninstall().
|
| 40 |
*/
|
| 41 |
function css_uninstall() {
|
| 42 |
drupal_uninstall_schema('css');
|
| 43 |
}
|