I have created a taxonomy of regions, with the intent of multiple uses:
- Users select their region in their profile
- Events include a region field.
This should make it rather easy to show users events in their region.
Each of these use cases requires one or two extra terms:
- Users might be from "outside New Zealand".
- Events might be "Nationwide", "Worldwide" or indeed "online".
But we don't want events outside NZ submitted, and the latter three terms are not appropriate for users to choose as their location. So I want to disable them from the listed options in each case.
I thought there might be a CSS solution as there are ample distinctive selectors available in the parent elements, but Drupal does not assign any classes to option elements - they only have a value, and the numeric id of the taxonomy term at that.