Locations.module compatibility
| Project: | Prepopulate |
| Version: | 5.x-1.4 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | coldice4678 |
| Status: | active |
Jump to:
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_settings][form][fields][street]=Street
or
http://www.example.com/node/add/nodetype?edit[locations][0][%23location_settings][form][fields][street][collect]=Street
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.

#1
I 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.
#2
Seems 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?