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

Comments

Zen’s picture

StatusFileSize
new4.67 KB

Sync with HEAD. The taxonomy_implode_tags issue has been fixed elsewhere.

-K

dries’s picture

Status: Needs review » Needs work

The PHPdoc code of the resolve function is not very descriptive.

Zen’s picture

Status: Needs work » Needs review
StatusFileSize
new4.84 KB

better?

bdragon’s picture

Status: Needs review » Needs work

Patch needs another reroll, two of the three hunks fail.

bdragon’s picture

Status: Needs work » Needs review
StatusFileSize
new4.83 KB

Free reroll, courtesy of patch bingo.
Untested, visual inspection only.

pancho’s picture

Version: 6.x-dev » 7.x-dev

Unfortunately I think this is too late for D6...

robin monks’s picture

StatusFileSize
new5.64 KB

Another free re-roll, compliments of patch bingo & friends ;-)

Changes:
- taxonomy_explode_tags is now drupal_explode_tags.
- This patch is tested.

Robin

robin monks’s picture

StatusFileSize
new4.78 KB

Whoops, patch creep :)

Robin

Patch failed to apply. More information can be found at http://testing.drupal.org/node/13873. If you need help with creating patches please look at http://drupal.org/patch/create

Patch failed to apply. More information can be found at http://testing.drupal.org/node/13873. If you need help with creating patches please look at http://drupal.org/patch/create

Patch failed to apply. More information can be found at http://testing.drupal.org/node/13872. If you need help with creating patches please look at http://drupal.org/patch/create

robin monks’s picture

StatusFileSize
new4.78 KB

The bot I created turns against me :(

Shame it had to be right :P

Robin

catch’s picture

Assigned: Zen » Unassigned
Status: Needs review » Needs work

This looks like a really nice cleanup, but it needs to be re-rolled for dbtng.

berdir’s picture

Status: Needs work » Closed (won't fix)

Terms 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)