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

Contents of /contributions/modules/gnokii/gnokii.install

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


Revision 1.2 - (show annotations) (download) (as text)
Thu Aug 21 03:46:52 2008 UTC (15 months ago) by diggersf
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.1: +20 -15 lines
File MIME type: text/x-php
Upgraded gnokii module to Drupal 6.
1 <?php
2 // $Id: gnokii.install,v 1.1 2008/08/06 14:55:55 diggersf Exp $
3 function gnokii_install() {
4 $result = drupal_install_schema('gnokii');
5 }
6
7 /**
8 * Implementation of hook_schema().
9 */
10 function gnokii_schema() {
11 $schema['gnokii'] = array(
12 'fields' => array(
13 'mid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
14 'number' => array('type' => 'varchar', 'not null' => TRUE, 'length' => 32),
15 'message' => array('type' => 'text'),
16 'status' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE),
17 ),
18 'primary key' => array('mid'),
19 );
20
21 return $schema;
22 }
23
24 /**
25 * Implementation of hook_uninstall().
26 */
27 function gnokii_uninstall() {
28 drupal_uninstall_schema('gnokii');
29 }

  ViewVC Help
Powered by ViewVC 1.1.2