How to display related data along with node I have a custom table that contains data related to certain nodes. I'm using EVA (Entity Views Attachment) to display some of this data along with the node, which works great.

However, I now want to display a single value from a related table when viewing a node.

I guess this could also be done using EVA, but creating a view to output a single value seems like the wrong approach(?)

In this case, the table does not contain entities. It is defined using hook_schema(), and made available to views with hook_views_data () in Drupal 7.

Thanks for any thoughts on the best way to proceed.
there is surprisingly many ways to acheive it :)
this is one that will require some work, but should be sane and scalable :


in a hook_node_load, load the data and attach it to the $node ($node->my-data)
[optionally] in hook_preprocess_node, create a variable for the template
in your template file, show the value aproprietly