I would like to make a field that is very similar to the group audience field but only displays certain types of groups.
As an experiment I hacked up:
and I was able to remove the groups I didn't want but obviously this is not where this code belong.
Is there a way that I can create a new field that inherits most of the behavior of the group audience field and but has a slightly different way of picking which groups to display? Or do I need to recreate the whole field from scratch?