Writing location data in Drupal
2 answers
Is the location field a new field that you want to add to your custom nodes?
You will have to handle a couple of hooks. insert , update , delete , load , form , view .
So, you need to add a field to your table. Display the field on the form. Save it when inserting a new node. Update node while editing node. Load the field back to node. Remove the line when deleting node. And display the field when viewing node (teaser or full). node link .
At the bottom of each of these hook pages, an example is shown using {mytable} and a field named "extra".
[edit] additional information.
+1
source to share