Problem/Motivation
Functionality for using different join methods is hardcoded only for groups.
Steps to reproduce
- Define your entity type in the "social_group_join_method_usage" hook.
- When you log in as CM+ and navigate to the entity creation page then you should see the "Join methods" field in the "Settings" section.
- Join methods functionality for your entity type should work similarly to the same functionality for groups.
- Join methods functionality for groups should work as before.
Proposed resolution
Delete hard relationships to groups to be able to use it for different entity types.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | social_course-re-use-group-join-methods-3256927-7.patch | 31.51 KB | ohorbatiuk |
Issue fork social_course-3256927
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ohorbatiukComment #4
ohorbatiukComment #5
ohorbatiukSimplify field name for entity type identifier in a hook for defining supported join methods.
Comment #6
ohorbatiukAllow selecting only one join method and ensure that the fieldset has a tooltip before modifying the second one.
Comment #7
ohorbatiukComment #8
ohorbatiukComment #12
ribelThis change was merged and released in version 4.1.0