Using Organic Groups for the first time and I've run into an issue.
I'm building the group hierarchy and I have two groups with the same name. Right now it's only two groups but there is the possibility of this happening again in the future. Obviously I cannot rename one of them.
Here is the general hierarchy:
- Level 1 (Brand) with 2 groups
- Level 2 (Location) with 15 groups
- Level 3 (Property) with >50 groups
- Level 2 (Location) with 15 groups
I have one location that is shared on both brands so I have two groups with the same name that are technically different because the parent group is different.
How do I differentiate between the two groups?
hook_entity_info_alter
it and alter the label callback (maybe append the level or node id or something). In theory that should sort it everywhere that it's used by code that behaves well