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

Contents of /contributions/modules/user_delete/user_delete.install

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


Revision 1.3 - (show annotations) (download) (as text)
Fri Jul 18 09:14:38 2008 UTC (16 months, 1 week ago) by sanduhrs
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.2: +11 -8 lines
File MIME type: text/x-php
#235041 by toemaz: The user delete install file implements the uninstall hook and drops a table which doesn't exist.
1 <?php
2 /* $Id: user_delete.install,v 1.2 2007/11/30 11:04:11 sanduhrs Exp $ */
3
4 /**
5 * User delete
6 *
7 * @author
8 * Stefan Auditor <stefan.auditor@erdfisch.de>
9 */
10
11 /**
12 * Implementation of hook_install().
13 */
14 function user_delete_install() {
15 switch ($GLOBALS['db_type']) {
16 case 'mysql':
17 case 'mysqli':
18 db_query("UPDATE {system} SET weight=-1 WHERE name='user_delete'");
19 break;
20 case 'pgsql':
21 db_query("UPDATE {system} SET weight=-1 WHERE name='user_delete'");
22 break;
23 }
24 }

  ViewVC Help
Powered by ViewVC 1.1.2