March 2018

How the hell do I push data from Drupal into Javascripts (Drupal 7)

Submitted by drupalviking on Wed, 03/07/2018 - 12:13

So here was my scenario:

I was creating an edit form for node type for a customer. When the node was originally submitted, the user could choose a location from a map, and the coordinates were saved in the node. And now, when a registered user is editing the node, he needs to see the map with the coordinates in place.