I found no way to identify the current group context of a post.
My use case is to enforce a new/edited post to stay in the group it is being created / edited,
See http://drupal.org/node/1231012

I tried Rules, but it is not possible - set group action needs to hard select the group, the current group node of a post node is unknown in Rules.

Comments

Ashford’s picture

I cannot answer your question in full, but this reply to another post may help you with writing your Rule.

See: http://drupal.org/node/1009606#comment-4807212

eileenmcnaughton’s picture

I have used this mini-module to add an action to load the group for rules. I couldn't find a way to do it in std OG

https://github.com/eileenmcnaughton/og_group_load

Yuri’s picture

Issue summary: View changes

HI, thanks for this mini module. Can you give indications how to use it?
It asks for OG MEMBERSHIP - Data selector

eileenmcnaughton’s picture

yep - it adds an action that takes an og Membership entity & loads & og Group Node - obviously you have to be starting from a situation where you have access to the og membership - unfortunately I can't actually recall how I used it :-( - possibly in conjunction with 'Fetch Entity by Property'

Yuri’s picture

Thanks eileen!