Shane A. Stillwell
Drupal Auto Node Title for multiple nodereference

Drupal Auto Node Title for multiple nodereference

Hold on Cowboy

This blog post is pretty old. Be careful with the information you find in here. The Times They Are A-Changin'

This is for a site I’ve put together that has a node referencing multiple other nodes. Token doesn’t handle multiple values yet so I had to strike out and use standard PHP for this.

This is customized for my site, but the point is there.

$value){ $z = $value['node_name']; if(!empty($z)){ $x[] .= preg_replace('/ \[nid:\d+\]/','',$z); } } return implode(' - ', $x); ?>