/[drupal]/contributions/modules/vbtodrupal/vbpassword.install
ViewVC logotype

Contents of /contributions/modules/vbtodrupal/vbpassword.install

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


Revision 1.2 - (show annotations) (download) (as text)
Mon Nov 5 18:31:51 2007 UTC (2 years ago) by liammcdermott
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
Changes since 1.1: +0 -0 lines
File MIME type: text/x-php
Use signature_forum module instead of meddling with core Drupal users table.
1 <?php
2 // $Id$
3 /**
4 * Implementation of hook_install().
5 */
6 function vbpassword_install() {
7 switch ($GLOBALS['db_type']) {
8 case 'mysql':
9 case 'mysqli':
10 db_query("CREATE TABLE {vbuser_salt} (
11 uid int(10) unsigned NOT NULL default '0',
12 salt char(3) NOT NULL default '',
13 drupal_updated tinyint(3) unsigned NOT NULL default '0',
14 PRIMARY KEY (uid),
15 KEY (salt)
16 );");
17 break;
18 case 'pgsql':
19 }
20 }
21
22 /**
23 * Implementation of hook_uninstall().
24 */
25 function vbpassword_uninstall() {
26 db_query('DROP TABLE IF EXISTS {vbuser_salt}');
27 }

  ViewVC Help
Powered by ViewVC 1.1.2