| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Install file for alias.module
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implementation of hook_install().
|
| 11 |
*/
|
| 12 |
function alias_install() {
|
| 13 |
drupal_install_schema('alias');
|
| 14 |
}
|
| 15 |
|
| 16 |
/**
|
| 17 |
* Implementation of hook_uninstall().
|
| 18 |
*/
|
| 19 |
function alias_uninstall() {
|
| 20 |
drupal_uninstall_schema('alias');
|
| 21 |
}
|
| 22 |
|
| 23 |
/**
|
| 24 |
* Implementation of hook_schema().
|
| 25 |
*/
|
| 26 |
function alias_schema() {
|
| 27 |
$schema['alias'] = array(
|
| 28 |
'fields' => array(
|
| 29 |
'id' => array(
|
| 30 |
'type' => 'serial',
|
| 31 |
'unsigned' => TRUE,
|
| 32 |
'not null' => TRUE,
|
| 33 |
),
|
| 34 |
'path' => array(
|
| 35 |
'type' => 'varchar',
|
| 36 |
'length' => 255,
|
| 37 |
'not null' => TRUE,
|
| 38 |
'default' => '',
|
| 39 |
),
|
| 40 |
'url' => array(
|
| 41 |
'type' => 'text',
|
| 42 |
'not null' => TRUE,
|
| 43 |
'default' => '',
|
| 44 |
),
|
| 45 |
'code' => array(
|
| 46 |
'type' => 'int',
|
| 47 |
'not null' => TRUE,
|
| 48 |
'default' => 0,
|
| 49 |
),
|
| 50 |
),
|
| 51 |
'primary key' => array('id'),
|
| 52 |
);
|
| 53 |
return $schema;
|
| 54 |
}
|