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.
Motivation
With the introduction of the flexible group type it makes sense to disable the creation of other group types for certain user roles.
When disabling all but one group type, it's not user friendly to be sent to a page where there is just one option.
Solution
When a user can only add one type of group, we adjust the route of the menu item "New group" from group add page to the group add group type page.
Comments
Comment #2
royharink CreditAttribution: royharink commentedPR: https://github.com/goalgorilla/open_social/pull/1461
Comment #4
jaapjan CreditAttribution: jaapjan for Open Social commentedMerged to 6.x and 7.x