I can't find a way to change the text below when using Gmap Location.
If you wish to supply your own latitude and longitude, you may enter them above. If you leave these fields blank, the system will attempt to determine a latitude and longitude for you from the entered address. To have the system recalculate your location from the address, for example if you change the address, delete the values for these fields.
You may set the location by clicking on the map, or dragging the location marker. To clear the location and cause it to be recalculated, click on the marker.
The text is located just below the actual map on the node/edit page. I have searched the code and tried using the String Overrides module without luck.
I would appreciate any help you can give me
thanks /ted
Comments
Comment #1
zilla commentednot sure where that text is buried, but the magical "formdefaults" module should let you edit it right there on the screen once enabled! (or string overrides module for other minor things as well, but not for this form item as it's not being output as a string like $tid or whatever)
Comment #2
jade_IAAMB commentedFor anyone else who's searching for this answer, the text is located around line 360 of location/location.module
Comment #3
tedl commentedthank you jade_IAAMB
/ted
Comment #4
marcushenningsen commentedComment #5
sopia commentedDitto. I had to remove the text from the module. Not the RIGHT way I know, but it was quick. Until the next time I update the module and forget about the tweak ;-)
Comment #7
rachelf commentedI know this thread's a bit old, but here's how I did this with a custom module in D6 for the gmap location in a content_type called business:
To identify the form_id I edited a business node and then searched in firebug to find the line
<input id="edit-business-node-form" type="hidden" value="business_node_form" name="form_id">, which gave me the form_id (n.b. use the value that's in the value="" bit rather than the id="" bit (this confused me for quite a while before I got hook_form_alter to work).The function print_rr is a handy tip I picked up from someone on Drupal. If you put a
return print_rr($form)into your function, and then reload the form, you get to see the whole of the form array, and this helps you find a field that you want to alter.Comment #8
ressaThanks for sharing your solution @rachelf. With a few changes, it still works well for the successor to the "Google Maps location" module which is https://www.drupal.org/project/location.
Here's how I used your code to remove the "Re geocode" and "Delete" checkboxes, and update the wording of the "If you wish to supply ... " text (I didn't include the debug part):
Replace
HOOKwith the module name andFORM_IDwith the form id.