is this possible? I have users set their location on their profile page and optionally insert Latitude/longitude via Gmap. Now I would like to have all nodes to automatically have their author's location as default value.
at the moment, all node edit forms are empty as default.
also it would be cool to have the Latitude/Longitude taken over from the user profile, altho this might be a gmap issue...
Comments
Comment #1
sterwa commentedA crude hack would involve getting into location.module and adding inside function location_form
AFTER
ADD
And then in the appropriate place in the form description use something like
REPLACE
BY
This snipped above would prepopulate "name" field of the address.
Use this to alternate city, postal code, country etc. fields in analogous fashion.
Comment #2
sterwa commentedi just noticed, this is to prepopulate user location. But prepopulating lon/lat works really the same way, only you would need to alter location_latlon_form function instead.
Comment #3
catchhttp://drupal.org/node/143289