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.
↧