Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Ashford CreditAttribution: Ashford commentedI 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
Comment #2
eileenmcnaughton CreditAttribution: eileenmcnaughton commentedI 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
Comment #3
Yuri CreditAttribution: Yuri commentedHI, thanks for this mini module. Can you give indications how to use it?
It asks for OG MEMBERSHIP - Data selector
Comment #4
eileenmcnaughton CreditAttribution: eileenmcnaughton commentedyep - 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'
Comment #5
Yuri CreditAttribution: Yuri commentedThanks eileen!