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

Contents of /contributions/modules/profileplus/profileplus.install

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


Revision 1.3 - (show annotations) (download) (as text)
Fri Apr 11 03:45:37 2008 UTC (19 months, 2 weeks ago) by incrn8
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -2 lines
File MIME type: text/x-php
Initial release for Drupal 6.x.
1 <?php
2 // $Id: profileplus.install,v 1.2 2007/07/28 02:51:47 incrn8 Exp $
3
4
5 /**
6 * Implementation of hook_install().
7 */
8 function profileplus_install() {
9 switch ($GLOBALS['db_type']) {
10 case 'mysql':
11 case 'mysqli':
12 // put profileplus after user.module by increasing its weight
13 db_query("UPDATE {system} SET weight = 2 WHERE name = 'profileplus'");
14 break;
15 case 'pgsql':
16 db_query("UPDATE {system} SET weight = 2 WHERE name = 'profileplus'");
17 break;
18 }
19 }

  ViewVC Help
Powered by ViewVC 1.1.2