0

I have a node with a entity reference field where the user can select nodes to be displayed in a view. I want to alter the results to programmatically add a node.

I have tried these 2 hooks to alter the results:

HOOK_views_pre_render

HOOK_views_post_execute

However, the results only give 1 result which is first node in the reference field list. How do i loop through the actual result since the view itself displays fine with the selected nodes.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.