Honour taxonomy_override_selector

hefox - October 31, 2009 - 13:46
Project:Internationalization
Version:6.x-1.x-dev
Component:Taxonomy
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Drupal core has a method to have something other than the core module handle taxonomy, variable taxonomy_override_selector. It doesn't add the taxonomy forum element in those cases.

i18ntaxonomy alters the forum node forum no matter what along as $form['taxonomy'] is there, setting anything of $form['taxonomy'][$vid], and it's weighted at 5? so anything that wants to avoid it would have to be weighted higher, but if something is supplying the taxonomy forum it wants to run at around -1 so other modules (content_taxonomy, comment taxonomy add, etc.) can perform their alterations.

The simplest way is to check on taxonomy override selector.

A more complex way is to not override the values unrelated to it, like #type, but it's sharing code so that's more complex.

AttachmentSize
i18n_taxonomy_override.patch639 bytes

#1

hefox - December 14, 2009 - 17:19

as noted in http://drupal.org/node/601500#comment-2368706 this patch had a syntax error, this one should be fixed (manually edited) but didn't test it (bad fox, bad :( ).

AttachmentSize
619726_i18n_taxonomy_override.txt 633 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.