Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300673

Field name is not passed in $context inside field_view_field() for hook_field_attach_view_alter

$
0
0

field_view_field fires hook_field_attach_view_alter and passes a context array containing various bits of useful information, however the field name is missing. The field_name is passed inside the $result variable, however if the field contains no content, this variable is NULL. It would be useful to have the field name passed inside $context so that it is available regardless of the status of $result.


Viewing all articles
Browse latest Browse all 300673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>