Is it possible to use node_load to get values from a node in a node reference field? I can't seem to get node_load to work, or I'm not use the object correctly?
$site = node_load($node->field_client_group_site[0]['nid']);
$node_field[0]['value'] = $site->field_id_number;
Comments
Comment #1
mshaver commentedFigured it out. I needed the full node object path.
Comment #2
gjfreakout commentedIs it possible for anybody to explain me the above solution
Comment #3
robertjwhitney commentedyeah could you follow up on this? i think i have a similar problem.
Comment #4
jsommers commentedI hate when these things are left unfinished. This is exactly what I need. Anyone know what he means?
Comment #5
jsommers commentedThis will work:
This should work perfect. Let me know if you have questions. never posted code on here, hope the format is right.
Comment #6
fourmi4x commentedThank you so much for this piece of code, exactly what I needed and it works perfectly!
Comment #7
colanVersion 5 is no longer supported.