| 1 |
<?php
|
| 2 |
function customdestination_schema() {
|
| 3 |
$schema['customdestination'] = array(
|
| 4 |
'description' => 'The base table for customdestinations.',
|
| 5 |
'fields' => array(
|
| 6 |
'fid' => array(
|
| 7 |
'description' => 'The form ID of this customdestination.',
|
| 8 |
'type' => 'varchar',
|
| 9 |
'length' => 255,
|
| 10 |
'not null' => TRUE,
|
| 11 |
'default' => ''),
|
| 12 |
'dst' => array(
|
| 13 |
'description' => 'The custom destination for this form ID.',
|
| 14 |
'type' => 'varchar',
|
| 15 |
'length' => 255,
|
| 16 |
'not null' => TRUE,
|
| 17 |
'default' => ''),
|
| 18 |
),
|
| 19 |
'primary key' => array('fid'),
|
| 20 |
);
|
| 21 |
return $schema;
|
| 22 |
}
|
| 23 |
|
| 24 |
function customdestination_install() {
|
| 25 |
// Create my tables.
|
| 26 |
drupal_install_schema('customdestination');
|
| 27 |
}
|
| 28 |
|
| 29 |
function customdestination_uninstall() {
|
| 30 |
// Drop my tables.
|
| 31 |
drupal_uninstall_schema('customdestination');
|
| 32 |
}
|