add condition on hook_field_formatter_view