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 was trying to access a custom field with $account->field_foo in hook_node_access() with no avail.
I had to do the following to get the field data:
$user = user_load($account->uid);
$user->field_foo...
Is this a bug?
Comments
Comment #0.0
fenda CreditAttribution: fenda commentedSentence sounded weird.