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

Contents of /contributions/modules/ec_location/ec_location.install

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


Revision 1.1 - (show annotations) (download) (as text)
Fri May 18 17:02:34 2007 UTC (2 years, 6 months ago) by darrenoh
Branch: MAIN
CVS Tags: DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5
File MIME type: text/x-php
Prevented multiple location fieldsets when location has been enabled for the product node type.
Added uninstall function.
1 <?php
2 // $Id$
3
4 function ec_location_uninstall() {
5 $result = db_query('SELECT name FROM {variable}');
6 while ($variable = db_fetch_object($result)) {
7 $name = array_reverse(explode('_', $variable->name));
8 if (strpos($variable->name, 'location') == 0 && $name[1] == 'product') {
9 variable_del($variable->name);
10 }
11 }
12 }

  ViewVC Help
Powered by ViewVC 1.1.2