| 1 |
<?php |
<?php |
| 2 |
// $Id: location.install,v 1.41 2008/12/09 21:50:48 bdragon Exp $ |
// $Id: location.install,v 1.42 2009/02/24 22:54:38 bdragon Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 26 |
variable_del('location_locpick_macro'); |
variable_del('location_locpick_macro'); |
| 27 |
|
|
| 28 |
// Delete geocoder settings. |
// Delete geocoder settings. |
| 29 |
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_geocode_%'"); |
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_geocode_%'")->fetchCol(); |
| 30 |
while ($row = db_fetch_object($result)) { |
foreach ($result as $var) { |
| 31 |
variable_del($row->name); |
variable_del($var); |
| 32 |
} |
} |
| 33 |
} |
} |
| 34 |
|
|
| 1120 |
drupal_set_message(t("Note: Refusing to enable location_node.module, as location.module is not currently enabled.")); |
drupal_set_message(t("Note: Refusing to enable location_node.module, as location.module is not currently enabled.")); |
| 1121 |
} |
} |
| 1122 |
return $ret; |
return $ret; |
|
} |
|
| 1123 |
|
} |
| 1124 |
|
|
| 1125 |
|
/** |
| 1126 |
|
* 7.x update 1 |
| 1127 |
|
*/ |
| 1128 |
|
/* |
| 1129 |
|
function location_update_7000() { |
| 1130 |
|
$ret = array(); |
| 1131 |
|
// This went away because core now has site_default_country. |
| 1132 |
|
variable_del('location_default_country'); |
| 1133 |
|
|
| 1134 |
|
return $ret; |
| 1135 |
|
} |
| 1136 |
|
*/ |