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.
This allows to create a rule that will 'Add new content' and then make this new content a group.
* I had to do some tweaking to og_group_form()
in order to use it in the rules settings.
* I haven't been able for some reason, to incorporate the token integration for the 'description' field, but IMO this can come as a follow-up patch.
Comment | File | Size | Author |
---|---|---|---|
#3 | 338919_3_og_rules_create_group_node.patch | 3.89 KB | amitaibu |
#2 | 338919_2_og_rules_create_group_node.patch | 3.88 KB | amitaibu |
Screenshot.png | 38.23 KB | amitaibu | |
og_rules_create_group_node_1.patch | 5.6 KB | amitaibu | |
Comments
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedThe og.module changes look odd. When would $node->type be empty?
Comment #2
amitaibuIndeed, re-rolled.
Comment #3
amitaibuA tab slipped in the patch.
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedCommitted. Thx.
Comment #6
Tim_O CreditAttribution: Tim_O commentedThis is cool, but I do not have the option to set the group private. Is this possibly missing in the code from og.rules.inc:
Or is the private checkbox included in this and something else is going wrong?
Comment #7
Tim_O CreditAttribution: Tim_O commentedJust noticed this was assigned from the creation, sry for not resetting that when writing the bug report.
Comment #8
Tim_O CreditAttribution: Tim_O commentedAdding tag as found on http://drupal.org/project/issues/search?issue_tags=rules%20integration ...