summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrandon Bergren2008-12-05 21:06:09 (GMT)
committer Brandon Bergren2008-12-05 21:06:09 (GMT)
commitb53a06d43efbcf36879a3645803114dbaf69a06a (patch)
treefa323310d37f1b43c8957edd5440067dc93bb4e7
parent598905ca51ba3dc36e8f845435fd704996e6e303 (diff)
Allow inhibiting geocoding from the marker itself. (For use with batch importing, etc...)
-rw-r--r--location.module7
1 files changed, 7 insertions, 0 deletions
diff --git a/location.module b/location.module
index 1d8ff20..cfb3737 100644
--- a/location.module
+++ b/location.module
@@ -1217,6 +1217,13 @@ function location_save(&$location, $cow = TRUE, $criteria = array()) {
$inhibit_geocode = FALSE;
+ if (isset($location['inhibit_geocode']) && $location['inhibit_geocode']) {
+ // Workaround for people importing / generating locations.
+ // Allows things like location_generate.module to work properly.
+ $inhibit_geocode = TRUE;
+ unset($location['inhibit_geocode']);
+ }
+
if (isset($location['delete_location']) && $location['delete_location']) {
// Location is being deleted.
// Consider it empty and return early.