Active
Project:
Content Construction Kit (CCK)
Version:
6.x-2.x-dev
Component:
Rules Integration
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2010 at 23:08 UTC
Updated:
9 Dec 2010 at 09:43 UTC
Hi!
I tried to populate content's node reference field by this php code in different events:
return array(
0 => array(
'value' => $node-> nid,
),
);or
return array(
0 => array(
'value' => $node-> mynodereferencefield[0][value],
),
);or
return array(
0 => array(
'value' => $node-> mynodereferencefield[0][nid],
),
);
And now I see this code don't work nowhere.
So how I can set default php value of node reference?
Comments
Comment #1
Daniel A. Beilinson commentedComment #2
Daniel A. Beilinson commentedSorry!
Solution for fools like me:
Just forget to change 'value' to 'nid'. :-(
Comment #3
junro commentedHello, but if you want to load another cck node reference field ?
This doesn't work.
Any idea?