Populate a Node Reference field using PHP

Public

Replace the $phpreplacementtoken with the php replacement token from your rule.

Get raw version
php
  1. return array(
  2.     0 => array('nid' => $phpreplacementtoken->nid )
  3. );