Jourkey
Jourkey

Reputation: 34956

Drupal: Grabbing the node reference nid

On a node I have a cck reference to another node. What do I have to do to get nid of the referenced node.

Is it something like:

$node->field_name... uh something.

Anyone knows? Thanks.

Upvotes: 0

Views: 915

Answers (1)

dmitrig01
dmitrig01

Reputation: 769

$node->field_name[0]['nid']

Upvotes: 1

Related Questions