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.
I would really like a "parent term" selection rule (see #1327004: Taxonomy: term parent (TID / name) selection rule please :)). Unfortunately, this is not that. What this is, is really a "has parent" selection rule. Can we please rename it as such?
Comments
Comment #1
jenlamptonComment #2
jenlamptonOn second thought, we should probably rename the whole file (and all functions within)
Comment #3
jenlamptonit looks like this was already done in the D7 version. :/ perhaps we just need a backport.
Comment #4
jenlamptonMy thought is not to rename the whole inc file as to not get in the way of D7. Let's just clean up the UI so people know what the heck is going on.
Comment #5
jenlamptonThe names for these two access rules are backwards.
Term has parent(s)
is boolean: does the term have parent(s)? yes/no.But the config form asks you to choose specific parents.
Parent term
should need to be specified: Which is the parent term?But in this case you just select a vocabulary (uhm, what?!)
I propose the following cleanup:
1) Change the names of the two selection rules.
Proposed new names:
- "Taxonomy: term has any parent"
- "Taxonomy: parent term (specify)"
"Taxonomy: term has any parent" selection rule config cleanup
2) Remove the confusing vocabulary option on the config form as per #1343144: Remove Vocabulary select box from "Taxonomy: parent term" selection rule
"Taxonomy: parent term (specify)" selection rule config cleanup
3) Update the Description text on all the form elements that will help users choose wisely, as per #1889572: Clean up description text on Taxonomy term parent access rule config form
Attached patch is limited to the name change.
Comment #7
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 6 year old patch in #5 to term_has_parent.inc does not apply to the latest ctools 7.x-1.x-dev and needs a reroll.
Comment #8
Andrew Answer CreditAttribution: Andrew Answer as a volunteer commentedPatch rerolled.