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'm trying to associate a user's blog entry to a group if they so choose. So far, I've added Topics, and that's fine. But, I want the blog post to be added to a group activity if they tag an existing Group. Is this possible? I tried og_group_ref, but I only get error messages, and an HTTP 500 error.
Warning: array_shift(): The argument should be an array in commons_groups_tokens() (line 617 of /.../public_html/profiles/commons/modules/commons/commons_groups/commons_groups.module).
Is this possible?
Comment | File | Size | Author |
---|---|---|---|
#2 | commons_groups_tokens-first-group-2352605-1.patch | 858 bytes | matias |
Comments
Comment #1
marcissimus CreditAttribution: marcissimus commentedLooks like this happens when setting og_group_ref to max 1 value in field settings (typical if you want to have each node assigned to exactly one group via select list). Here's what fixed it in my system:
profiles/commons/modules/commons/commons_groups/commons_groups.module:
Would be nice if someone could create a patch for it. Thanks
Comment #2
matias CreditAttribution: matias commentedI have the same PHP warnings when the content is configured to only have one group.
This is marcissimus fix in a patch.