| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_schema().
|
| 6 |
*/
|
| 7 |
function activecollab_schema() {
|
| 8 |
$schema['activecollab'] = array(
|
| 9 |
'description' => t("User's API key."),
|
| 10 |
'fields' => array(
|
| 11 |
'uid' => array(
|
| 12 |
'description' => t('User ID.'),
|
| 13 |
'type' => 'int',
|
| 14 |
'unsigned' => TRUE,
|
| 15 |
'not null' => TRUE,
|
| 16 |
'default' => 0
|
| 17 |
),
|
| 18 |
'api_key' => array(
|
| 19 |
'description' => t('API key.'),
|
| 20 |
'type' => 'varchar',
|
| 21 |
'length' => 255,
|
| 22 |
'not null' => TRUE,
|
| 23 |
'default' => ''
|
| 24 |
),
|
| 25 |
),
|
| 26 |
'unique keys' => array(
|
| 27 |
'uid' => array('uid')
|
| 28 |
),
|
| 29 |
'primary key' => array('uid')
|
| 30 |
);
|
| 31 |
|
| 32 |
return $schema;
|
| 33 |
}
|
| 34 |
|
| 35 |
/**
|
| 36 |
* Implementation of hook_install().
|
| 37 |
*/
|
| 38 |
function activecollab_install() {
|
| 39 |
drupal_install_schema('activecollab');
|
| 40 |
}
|
| 41 |
|
| 42 |
/**
|
| 43 |
* Implementation of hook_uninstall().
|
| 44 |
*/
|
| 45 |
function activecollab_uninstall() {
|
| 46 |
drupal_uninstall_schema('activecollab');
|
| 47 |
}
|