Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
field system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Oct 2011 at 16:57 UTC
Updated:
29 Jul 2014 at 20:03 UTC
Jump to comment: Most recent
Comments
Comment #1
robloachHit #945524: Field formatter settings hooks in core
Comment #2
webankit commentedhook_field_settings_form() & hook_field_instance_settings_form can only be invoked by the modules defining field.
#1 will add a similar functionality for formatter settings hooks. These issues are related but are not duplicate.
Comment #3
robloach#945524: Field formatter settings hooks in core
Comment #4
andyposti think field settings (and instance) are different things
Comment #5
mrweiner commentedHas there been any development on this? I'd definitely suggest this as an addition to D8 at least, if not also D7. I also agree that this should be considered as separate from, albeit related to, the linked issue.
I really need a way to alter a field's settings based on role, and a hook like this is the only way that I can find to accomplish this. Unless, of course, somebody else has an alternative. I'm sure I'm not the only person who's ended up on this page while searching for a way to alter a field's settings via a hook.
Comment #6
attiks commented#945524: Field formatter settings hooks in core is committed to D8, so this can be done as well
Comment #7
johnpitcairn commented+1 from me...
Comment #8
andypostSuppose this already done in #1735118: Convert Field API to CMI
We have
hook_entity_OPERATION()to alter anything and form alters fo UI