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

Contents of /contributions/modules/flickr/flickr.install

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


Revision 1.5 - (show annotations) (download) (as text)
Mon Mar 24 19:56:09 2008 UTC (20 months ago) by drewish
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-alpha1, DRUPAL-6--1-0-BETA1, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.4: +31 -47 lines
File MIME type: text/x-php
#181005 (HorsePunchKid) Drupal 6 Port.
1 <?php
2 // $Id: flickr.install,v 1.2 2007/01/06 00:41:03 andrewlevine Exp $
3
4 function flickr_install() {
5 drupal_install_schema('flickr');
6 }
7
8 function flickr_uninstall() {
9 drupal_uninstall_schema('flickr');
10 }
11
12 function flickr_schema() {
13 $schema['flickr_users'] = array(
14 'description' => t('Connects Drupal users to their Flickr accounts.'),
15 'fields' => array(
16 'uid' => array(
17 'type' => 'int',
18 'not null' => TRUE,
19 'description' => t('Primary Key: Drupal user ID'),
20 ),
21 'nsid' => array(
22 'type' => 'varchar',
23 'length' => 64,
24 'not null' => TRUE,
25 'description' => t('Flickr NSID'),
26 ),
27 'identifier' => array(
28 'type' => 'varchar',
29 'length' => 64,
30 'not null' => TRUE,
31 'description' => t('Flickr identifier'),
32 ),
33 ),
34 'primary key' => array('uid'),
35 );
36 return $schema;
37 }
38
39 /**
40 * Adding a table to map Drupal users to Flickr users
41 */
42 function flickr_update_1() {
43 flickr_install();
44 }

  ViewVC Help
Powered by ViewVC 1.1.2