Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm writing some custom functionality where I perform a node_load and need the value(s) of a node reference field.
The node object contains the values of the node reference field, but they have no 'access' property set. I can see why this happens: the access property is set in node_reference_field_prepare_view, but this is never called when performing a node_load.
Is there a way to still get the access property for each item?