I have been searching for a way to used Prepopulate to prepopulate fields that where generated by the Location module. as much as I could figure out the url show be either :
http://www.example.com/node/add/nodetype?edit[locations][0][%23location_...
or
http://www.example.com/node/add/nodetype?edit[locations][0][%23location_...
Neither of these work. %23 is the way to escape the '#' character.
I got this information from Var_Dumping the '$form' variable in the '_prepopulate_get_walk' Function.
From what I got, I feel I am very close or maybe the Locations.module isn't made to accept the data.
I am wondering if anyone else tried to use these 2 modules, and if you were able to get the 2 modules working together.
Comments
Comment #1
farald commentedI am using the 6.x version, and also struggles with finding the correct url for using location items.
I need the location latitude and longitude prepopulated, to allow people to post on the same geographic location as "parent" nodes without setting lat and long themselves.
Comment #2
farald commentedSeems like the location form is not a part of $form.
http://drupal.org/node/143289#comment-1350256
Does this mean that prepopulate won't work at all on locaion form elements?
Comment #3
jbrauer commentedClosing issues for unsupported 5.x version