Further to whichever kind soul introduced taxonomy_implode_tags and taxonomy_explode_tags, this patch:
- Cleans taxonomy_node_save further by moving functional parts of the code into taxonomy_resolve_tags.
- taxonomy_get_term_by_name now takes an additional $vid parameter that will allow searches to be limited to particular vocabularies. It is currently rather wasteful.
- taxonomy_resolve_tags will prove useful in contrib as well.
- Cleaner and lesser processing.
Additionally, taxonomy_implode_tags was buggy with a copy/paste error. Fixed in this patch as it is not possible to test otherwise.
-K
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | new_taxonomy.diff | 4.78 KB | robin monks |
| #8 | new_taxonomy.diff | 4.78 KB | robin monks |
| #7 | new_taxonomy.diff | 5.64 KB | robin monks |
| #5 | streamline_save.patch | 4.83 KB | bdragon |
| #3 | tax-freetag_1.patch | 4.84 KB | Zen |
Comments
Comment #1
Zen commentedSync with HEAD. The taxonomy_implode_tags issue has been fixed elsewhere.
-K
Comment #2
dries commentedThe PHPdoc code of the resolve function is not very descriptive.
Comment #3
Zen commentedbetter?
Comment #4
bdragon commentedPatch needs another reroll, two of the three hunks fail.
Comment #5
bdragon commentedFree reroll, courtesy of patch bingo.
Untested, visual inspection only.
Comment #6
panchoUnfortunately I think this is too late for D6...
Comment #7
robin monks commentedAnother free re-roll, compliments of patch bingo & friends ;-)
Changes:
- taxonomy_explode_tags is now drupal_explode_tags.
- This patch is tested.
Robin
Comment #8
robin monks commentedWhoops, patch creep :)
Robin
Comment #12
robin monks commentedThe bot I created turns against me :(
Shame it had to be right :P
Robin
Comment #13
catchThis looks like a really nice cleanup, but it needs to be re-rolled for dbtng.
Comment #14
berdirTerms are now handled through field.module, so I guess this can be marked as won't fix.
(Sorry for pinging the participants, I'm trying to clean up a few old
issues)