Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field_ui.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Nov 2010 at 18:43 UTC
Updated:
26 Nov 2010 at 16:20 UTC
Jump to comment: Most recent file
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