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.

CommentFileSizeAuthor
#3 1111180.patch2.99 KBrobloach
#2 1111180.patch4.6 KBrobloach

Comments

nguyentran’s picture

How to use and save value, thanks.

robloach’s picture

Status: Active » Needs work
StatusFileSize
new4.6 KB

Turns 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.

robloach’s picture

StatusFileSize
new2.99 KB

Whoops, here's the patch.

robloach’s picture

Status: Needs work » Postponed

Needs to be postponed until Drupal 8 :-( .... #1308860: Allow modules to alter fields settings hook

mariacha1’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)