| 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 |
| 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 |
} |
} |