I am importing nodes with some other module.
Those nodes type has an active vocabulary, so the taxonomy_default module does not use that vocabulary during the import.
But I need the default taxonomy type to be set at this moment!

Solution: change

$activevocab = array_key_exists($vid, $type_vocabularies);

to

$activevocab = (array_key_exists($vid, $type_vocabularies)
&& isset($taxonomy[$vid]));

at line 77 of the module

Comments

bradweikel’s picture

Version: 6.x-1.0 » 6.x-2.x-dev
Status: Active » Closed (won't fix)

Unfortunately, the overhaul of the Taxonomy Defaults interface (about to be released as 6.x-2.0) pushed most of the logic out of hook_nodeapi and into hook_form_alter, where it is MUCH cleaner but even less likely to work with node importers.

There may be exceptions, depending on which import module is used and how it works, but that should be filed as a new issue.