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.
#1539972: og_get_group() is missing the @param for $states adds a mention of these constants, and I *think* I understand them.
But more a complete explanation of these is in order.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1539974-og-state-docs-1.patch | 1.01 KB | amitaibu |
Comments
Comment #1
amitaibuHow about this?
Comment #2
amitaibuProbably can't heart committing -- Committed to 1.x and 2.x
Comment #3
tim.plunkettIn 7.x-1.x, when calling
og_get_group()
from within a submit function where the group itself is being saved, you have to specifyarray(OG_STATE_ACTIVE, OG_STATE_PENDING)
.It's really not clear why an existing group switches to OG_STATE_PENDING during submission. Is that a bug, or is that something that just needs to be clarified?
The changes you made seem to be about members, not the groups themselves.
Comment #4
amitaibu> why an existing group switches to OG_STATE_PENDING during submission
This sounds like a bug.