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

Contents of /contributions/modules/activecollab/activecollab.install

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Dec 3 01:46:26 2008 UTC (11 months, 3 weeks ago) by greenskin
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1, DRUPAL-6--2
File MIME type: text/x-php
Initial commit of ActiveCollab.
1 <?php
2 // $Id$
3
4 /**
5 * Implementation of hook_schema().
6 */
7 function activecollab_schema() {
8 $schema['activecollab'] = array(
9 'description' => t("User's API key."),
10 'fields' => array(
11 'uid' => array(
12 'description' => t('User ID.'),
13 'type' => 'int',
14 'unsigned' => TRUE,
15 'not null' => TRUE,
16 'default' => 0
17 ),
18 'api_key' => array(
19 'description' => t('API key.'),
20 'type' => 'varchar',
21 'length' => 255,
22 'not null' => TRUE,
23 'default' => ''
24 ),
25 ),
26 'unique keys' => array(
27 'uid' => array('uid')
28 ),
29 'primary key' => array('uid')
30 );
31
32 return $schema;
33 }
34
35 /**
36 * Implementation of hook_install().
37 */
38 function activecollab_install() {
39 drupal_install_schema('activecollab');
40 }
41
42 /**
43 * Implementation of hook_uninstall().
44 */
45 function activecollab_uninstall() {
46 drupal_uninstall_schema('activecollab');
47 }

  ViewVC Help
Powered by ViewVC 1.1.2