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

Contents of /contributions/modules/alt_login/alt_login.install

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


Revision 1.8 - (show annotations) (download) (as text)
Sat Oct 17 02:10:23 2009 UTC (5 weeks, 4 days ago) by thehunmonkgroup
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +5 -1 lines
File MIME type: text/x-php
add hook_update_last_removed.
1 <?php
2 // $Id: alt_login.install,v 1.7 2009/10/06 03:34:55 thehunmonkgroup Exp $
3
4 /**
5 * @file
6 * Install, update and uninstall functions for the alt_login module.
7 */
8
9 /**
10 * Implementation of hook_schema().
11 */
12 function alt_login_schema() {
13
14 $schema['alt_login'] = array(
15 'description' => 'Storage table for alternate user login names.',
16 'fields' => array(
17 'uid' => array(
18 'description' => 'The uid of the user.',
19 'type' => 'int',
20 'not null' => TRUE,
21 'default' => 0,
22 ),
23 'alt_login' => array(
24 'description' => 'The alternate login name for the user.',
25 'type' => 'varchar',
26 'length' => 60,
27 'not null' => TRUE,
28 'default' => '',
29 ),
30 ),
31 'primary key' => array('uid'),
32 'foreign keys' => array(
33 'uid' => array('user' => 'uid'),
34 ),
35 );
36
37 return $schema;
38 }
39
40 function alt_login_update_last_removed() {
41 return 1;
42 }
43
44 /**
45 * Implementation of hook_uninstall().
46 */
47 function alt_login_uninstall() {
48 // Drop variables.
49 $variables = array(
50 'alt_login_user_registration',
51 );
52 foreach ($variables as $variable) {
53 variable_del($variable);
54 }
55 }
56

  ViewVC Help
Powered by ViewVC 1.1.2