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

Contents of /contributions/modules/customdestination/customdestination.install

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Jul 4 21:21:53 2009 UTC (4 months, 3 weeks ago) by flevour
Branch: MAIN
CVS Tags: DRUPAL-6--1-4, DRUPAL-6--1-2, DRUPAL-6--1-3, HEAD
Changes since 1.1: +3 -3 lines
File MIME type: text/x-php
Bug #424312 by flevour: Don't t'ify schema in .install
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 }

  ViewVC Help
Powered by ViewVC 1.1.2