/[drupal]/contributions/modules/alias/alias.install
ViewVC logotype

Contents of /contributions/modules/alias/alias.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Mon Nov 24 22:45:31 2008 UTC (12 months ago) by rz
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
30 minute modules presents... Alias module
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 }

  ViewVC Help
Powered by ViewVC 1.1.2