Needs review
Project:
OG Vocabulary
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jun 2015 at 17:42 UTC
Updated:
8 Dec 2015 at 02:55 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mpotter commentedHere is the patch being used in Open Atrium. Note: While select2widget was mentioned as an example, this patch is not specific to select2widget but can be used for any widget that has custom settings form.
Comment #2
mpotter commentedComment #3
amitaibu@mpotter, thanks. Can you attach a screenshot to make it clear what you are trying to achieve.
Comment #4
mpotter commentedBTW, this patch just adds the custom widget settings form. The patch in #2242387: Override widget settings with settings entity settings is needed to actually load the custom widget settings into the mock field instance.
But yes, here are some screen shots to show what this patch does. In this case I'm using the select2widget module which implements the hooks in field_ui to add custom settings.
1) In the first image you see how this looks on a normal field via the structure->content types->manage fields (in this case, showing select2widget being used on the OG Audience field).
2) In the second image is the OG Vocab field form WITHOUT the patch.
3) In the third image is the OG Vocab field form WITH the patch in #1.
Notice that in (3) it properly shows the widget settings that are shown for the normal field in (1).
Comment #5
mpotter commentedComment #6
realityloop commentedI was getting errors with the foreach loop added in the 2nd hunk of the patch from #1 when using this with hierarchical select, updated patch fixes the issue