I am trying to create a block in Drupal7 that is taking information from the page that the block is displayed on.
Something like this:Please request more information <a href="/webform/info?line=<taxonomy value>&prod=<content field value>">here</a>.
Where the "taxonomy value" is set as a value on the content type that was created. And the same goes for "content field value".
This will allow me to help pre-populate some fields on the linked webform by passing values through the url.
Due to styling requirements for this block, I figured it would be better to create the block via module code.
I have the initial block code setup, where I'm falling short is I'm not sure how to "pull" in the content type values I need.
According to some searches I've done, "node_load()" keeps popping up, but I've also seen some posts saying that "node_load()" is depreciated.
What is the best/supported way to get the content field value and taxonomy value that I need into my block?