To add the Field Permissions options to the Field Settings, we currently use a hook_form_alter(). We might gain benefit out of using hook_field_settings_form() instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1111180.patch | 2.99 KB | robloach |
| #2 | 1111180.patch | 4.6 KB | robloach |
Comments
Comment #1
nguyentran commentedHow to use and save value, thanks.
Comment #2
robloachTurns out field_ui_field_settings_form() only calls hook_field_settings_form() for the module that creates the field. This seems like a core bug as it means modules outside the field defining module can have field settings.
Comment #3
robloachWhoops, here's the patch.
Comment #4
robloachNeeds to be postponed until Drupal 8 :-( .... #1308860: Allow modules to alter fields settings hook
Comment #5
mariacha1 commented