adding support for a default province/state?

dww - January 20, 2006 - 07:34
Project:location (API, module)
Version:6.x-3.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

location already supports a default country. it'd be nice to allow support for a default state/province, too. nearly all of the locations my site has to deal with are going to be in a single state. if i just disable state/province collection, then the map links don't work. and, it's possible some nodes might need locations outside the primary state. i'd rather collect and store the state/province, but not force everyone to deal with the huge drop-down menu, since 99% of the time, they wouldn't need to change it from the default.

i'm brand new to drupal, module APIs, etc, so my initial attempts to hack this into a test 4.6 installation were unsuccessful. i managed to change location_settings() to ask for and store the default, like it does for country, but in the other places where it's collecting location data, i couldn't get this stored value to be used as a prefilled value anywhere. however, it seems like someone who actually knows they're doing could do this very easily. :) is there any good reason not to do this? i'd be happy to share my initial efforts (though i doubt they're of any value to anyone). alternatively, if someone was patient and gracious enough to help me get up to speed with the location APIs, i could probably finish the task myself. let me know. thanks!!

#1

catch - February 26, 2008 - 05:24
Status:active» duplicate

Marking as duplicate of http://drupal.org/node/217512

#2

bdragon - September 18, 2008 - 19:46
Version:4.6.x-1.x-dev» 6.x-3.x-dev
Status:duplicate» active

Unduplicatifying

 
 

Drupal is a registered trademark of Dries Buytaert.