This issue stemmed from #976042: Add option to choose which group types can be used to create hierarchies. Read the comments from that issue starting with #1 to get an idea of what we're trying to accomplish.
A structured hierarchy is one that has a predefined number of levels and each level has a predefined parent group type.
There is an excerpt from a comment from the issue mentioned above that got all of this started:
Imagine you wanted a "Geography" hierarchy and a "Military Ranks" hierarchy. You could optionally define group type relationships of:
Continent => Country => City
Major => Captain => LieutenantThen, if you were creating a City you wouldn't get any Majors in the parent selector, and if you were creating a Lieutenant you wouldn't get any Continents in the parent selector.
The patches that were created in the previous ticket no longer work because the module has since gotten a complete rewrite.
I'm thinking that integrating with the Rules module would be a good option for allowing this kind of functionality.
Comments
Comment #1
bschilt commentedI spent several hours working with the Rules module, specifically the Rules Form submodule and due to lack of documentation I don't think I want to go this route for enforcing a structured hierarchy. I'm thinking a new module should be created to handle defining a structured hierarchy since the previous patch changed so much of the core subgroups module.