When formatter summary is empty user has no ability to change settings for formatter.
So I think we need to display "wheel button" anytime if field formatter has settings.
Follow from #553292-14: Formatter settings lost when saving a field
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | field_formatter_summary_doc_typo-6.patch | 747 bytes | eric_a |
| #2 | field_formatter_summary_doc.patch | 603 bytes | yched |
| 553292-summary-fix-d7.patch | 1008 bytes | andypost |
Comments
Comment #1
yched commentedThis patch cannot work. A module can implement several formatters, some of them have settings, some of them don't (text.module, for instance). The module does implement hook_field_formatter_settings_form(), yet we still don't want to show the 'edit' button for formatters without settings.
The current logic is :
If there are settings to configure, then hook_field_formatter_settings_summary() should provide a summary of the current settings.
If summary is empty, then we assume there's nothing to configure and we don't show the 'edit' button.
We don't want to call hook_field_formatter_settings_form() just to see if we get a non empty settings form.
So, the current code is OK by me.
Comment #2
yched commentedPatch makes this clearer in the doc for hook_field_formatter_settings_summary()
Comment #3
andypostagree with this but still thinking about alterable summary
Comment #4
dries commentedCommitted to CVS HEAD. Thanks.
Comment #5
eric_a commentedTypo...
Comment #6
eric_a commentedComment #7
yched commentedOops. Thks :-)
Comment #8
dries commentedCommitted to CVS HEAD.
Comment #9
dave reidandypost: I think you need will be filled by http://drupal.org/project/field_formatter_settings in the meantime