Which settings to use in hook_field_formatter_view? Looking at the page of hook_field_formatter_view, the explanation for $display is:


  The display settings to use, as found in the 'display' entry of instance definitions. The array notably contains the following keys and values;


But I just found out that the $display variable does not hold accurate information.

This is what's inside my $instance (correct settings)


This is what's inside my $display (default values for settings)


I could overwrite $display from the $instance settings, but I can't figure out in which variable the current view mode is stored, so that I can grab the settings for the correct view mode.

As a little background info, this is a custom field with a custom formatter. Has anyone had similar issues with a custom field/formatter?
This wasn't really a problem. This was because the page was a Panels page, and the field was added into the panel page with its own formatter settings.

Solved by setting the correct field formatter settings on the panel page.

It's one of d'ohs days.