First time when I tried this module, I thought that read-only was actually a field which is disabled. So I thought that it would be great to have that widget too.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | field_extrawidgets-1472770-2.patch | 1.83 KB | imiksu |
| #1 | field_extrawidgets-1472770-1.patch | 1.7 KB | imiksu |
Comments
Comment #1
imiksuI've attached a patch which shows the proposed direction of implementation. The widget is working currently with 'text' field type.
The basic idea is to re-use the original widget and use that as "base widget". Then we just call the form for that widget and make it disabled.
TODO
Comment #2
imiksuThis patch also handovers the widget settings and tells the widget module. There was a conflict where Field API thought that widget was by
field_extrawidgetsmodule insteadtextmodule.TODO: Also discovered that something needs to be done for widget settings. I think the setting should be handled by "base widget"?
Note: First patch was against beta1, this one is against current dev.