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.
Hello!
Some months ago I was looking for the functionality of this module, but when I tried I ran into some issues that I don't remember any more :( but as a result of it I ended up creating my own module. It is a very much simplified version of this module (no menu callbacks) , and might lack some options. The basic functionality is as fallow:
- If quotes are found, everything inside the quotes is set as the term, including commas.
- If commas are found outside quotes, an error is set, we don't know if the user intended to set a single value or not, better to be safe, the error suggest the use of quotes
As a bonus, this module also includes a NUMERIC validation option
This is a different approach to what this module does. taxonomy_single_tag was just to complex to my needs.
Best to all
Federico
Comment | File | Size | Author |
---|---|---|---|
#1 | taxonomysp.zip | 3.6 KB | jm.federico |
taxonomysp.info_.txt | 171 bytes | jm.federico | |
taxonomysp.module.txt | 3.89 KB | jm.federico |
Comments
Comment #1
jm.federico CreditAttribution: jm.federico commentedHum, attaching zip file with uninstaller
Comment #2
arhak CreditAttribution: arhak commentedyour approach is to flag an error, but the autocompletion wouldn't limit the suggestions when a comma is entered
also, there are single terms that might be intended to have quotes AND commas within it
and you're banning them out
this module is intended to have such callback (and also validates inconsistencies between the options a vocabulary can have at a time)
regarding numeric validation: it is out of the scope of this module (you can implement as much validators as you want in other custom modules, I have my own to setup regex validators)