Help with OG and PHP Field

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

Alright... so I've got a view which identifies users with a sign-up for a workshop and executes a custom php snippet to subscribe them to a group which serves as the on-line classroom. I am using og_subscribe_user for this and it works great.

Now, when the workshop ends, I am going to remove them from the group and purge their contributions from the group. Browsing the CVS I find the og_unsubscribe_user function which looks like it work just like the og_subscribe_user function. Great! Except, the function doesn't exist in the latest stable release of OG.

I'd add it, but it's calling other functions that ALSO don't exist in the most recent recommended release. So, two questions... wtf? and what can I do to make this happen?

Thanks

Comments

og_delete_subsciption

jcicolani's picture

After another hour of digging around, I came across the og_delete_subscription function which seems to do the job. What I don't know is if this does any more clean up as it calls module_invoke_all and feeds it an array stating with 'og' and I don't know how to track what modules are hooking into og.

We'll see what pops up in testing, I guess.