Worse, even the whole variable site is missing! What I wanted to do is flag (follow) the group node for newly approved members. Impossible now. The same thing will work with event "User has become a group member" where you will find variable site all right.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ñull’s picture

Attached the rule rules_follow_default_approved_group_member.txt that fails to provide the necessary variable "site", demonstrated by the debug actions. The other rule rules_follow_default_new_group_member.txt provides an example that works like it should, where the needed variable is available.

eileenmcnaughton’s picture

We have observed this too. I had hoped we might be able to crawl 'og_membership' instead - especially if we did a check on group_type first - but 'og-membership:group:type' is not valid

eileenmcnaughton’s picture

Per

https://drupal.org/node/1236556#comment-8434091

I have gotten around this by adding a module that adds an action to load the group

https://github.com/eileenmcnaughton/og_group_load