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.
This might be a handy feature, or it might merely be confusing as you don't get that option on editing the vocab.
Comment | File | Size | Author |
---|---|---|---|
#4 | 719522.user_terms.show-on-vocab-admin.3.patch | 951 bytes | yeputons |
#2 | 719522.user_terms.show-on-vocab-admin.2.patch | 905 bytes | yeputons |
#1 | 719522.user_terms.show-on-vocab-admin.patch | 938 bytes | joachim |
Comments
Comment #1
joachim CreditAttribution: joachim commentedHere is a patch anyway.
Opinions on this?
Comment #2
yeputons CreditAttribution: yeputons commentedFirst thing I noticed:
$vids should be array, not a string, if user_terms_vocabs wasn't defined.
The next bug: we should add comma only if $form[$vid]['types']['#value'] is not empty.
Fixed patch is attached.
Comment #3
joachim CreditAttribution: joachim commentedWell spotted!
But always put the if block in braces and on its own line.
Powered by Dreditor.
Comment #4
yeputons CreditAttribution: yeputons commentedLike this?