Get the referenced node ID I have a content type (a) referenced to another content type (b) by url widget, how can I get the ID of the referenced node (b)?
Thanks.
You can get node id using : 

$nid = $node-&gt;field_reference['und'][0]['nid'];


And you can check it out from this: 

drupal_set_message($nid);