Need to split up group audience field (Organic Groups) into public and private fields

Events happening in the community are now at Drupal community events on www.drupal.org.
jmev's picture

The group audience field lists all organic groups. I need it to be two separate fields, one listing the public groups and one the private. For the private, I need to have it filter down to only groups the current user is a part of, and if they aren't in any private groups, then I need to hide that. Can any one share a clue on how to do this?

If this isn't possible, perhaps someone can direct me to info on creating a view as the source for this field so that I can control which group is displayed (hide private groups the current user isn't part of), and perhaps I can list them with the privacy level in parenthesis.

Thanks in advance for any advice.

Comments

Alternative solution (?)

jmev's picture

As an alternative, I could use the single field and set it's value to "Views: Filter by an entity reference view" and hopefully display both public and private groups that way. I'd like them to appear like this in the list box:
Private
- private group 1
- private group 2
Public
- public group 1
- public group 2

Any thoughts on creating this type of listbox?

Drupal rocks and I roll — together we play the classics

Organic groups

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week