Closed (fixed)
Project:
Inline Entity Form
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2012 at 19:22 UTC
Updated:
1 Apr 2015 at 03:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bojanz commentedHere's a first stab at trying to abstract this out. It's pretty clean on the callback side (commerce_product.forms.inc, which should btw probably become just commerce_product.inc) anda bit hacky on the IPF side. Open for brighter ideas.
Not sure how to proceed with view modes, because I don't think there's a way of specifying default settings ("show sku", "hide title", etc). The default settings (sku and title shown, nothing else) would work for products, but not for line items (which need at least the price as well).
Perhaps we could declare a view mode, but have a field widget setting that says whether it should be used, and have it off by default? Unsure.
Comment #2
bojanz commentedTweaked for latest git change, and committed:
http://drupalcode.org/sandbox/rszrama/1181848.git/commitdiff/dd4902e
Not perfectly happy with the approach, but it gets us where we need to be.
We can discuss the entity_view() approach in another issue. Moving on.
Comment #4
Sinan Erdem commentedHello,
What is the output of this issue? Can we edit the list now? How?
Thanks