Drupal 7 : display entity reference with multiple values

1
2
<?php $fielditems = field_get_items('node', $node, 'field_event_entity');?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This lets you use the Drupal7 entity reference with multiple values to pull out individual fields and echo them in a foreach.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.