How do you grab node variable?

j0k3z - February 12, 2009 - 00:09
Project:CCK GMap Address
Version:5.x-1.0-beta1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

What is the proper format to fetch a variable from the node? All the code I see is for fetching data from other fields, not from variables within the node

#1

derhasi - February 16, 2009 - 22:35
Status:active» fixed

Grabbing node variables should work with title or changed or all other variables available in $node. Just test it.

#2

j0k3z - February 16, 2009 - 23:23

Im talking about a varible that I set with php within the node body.

How to I grab that value?

#3

derhasi - February 19, 2009 - 23:42
Status:fixed» postponed (maintainer needs more info)

You mean you set $node->body ? If it's only a part of $node->body you will get big problems, because then you had to expose the data via regex. This could be dirty. That is too much effort for this module, I guess.

 
 

Drupal is a registered trademark of Dries Buytaert.