/[drupal]/contributions/modules/location/location_node.install
ViewVC logotype

Diff of /contributions/modules/location/location_node.install

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

revision 1.1, Tue Feb 24 22:54:38 2009 UTC revision 1.2, Mon Aug 31 22:09:35 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: location_node.install,v 1.1 2009/02/24 22:54:38 bdragon Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 11  Line 11 
11   */   */
12  function location_node_uninstall() {  function location_node_uninstall() {
13    // Delete node settings.    // Delete node settings.
14    $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_settings_node_%'");    $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_settings_node_%'")->fetchCol();
15    while ($row = db_fetch_object($result)) {    foreach ($result as $var) {
16      variable_del($row->name);      variable_del($var);
17    }    }
18    
19    // Delete compatibility variables.    // Delete compatibility variables.
20    $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_maxnum_%'");    $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_maxnum_%'")->fetchCol();
21    while ($row = db_fetch_object($result)) {    foreach ($result as $var) {
22      variable_del($row->name);      variable_del($var);
23    }    }
24    $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_defaultnum_%'");    $result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_defaultnum_%'")->fetchCol();
25    while ($row = db_fetch_object($result)) {    foreach ($result as $var) {
26      variable_del($row->name);      variable_del($var);
27    }    }
28  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2