Issue #2267601 by Wim Leers, DamienMcKenna: Added a new variable (panelizer_view_mode) so hook_preprocess_field() can know what view mode is being used to display the entity the field is attached to.