The docs for taxonomy_csv_import() say:

> * - vocabulary_id : vid or machine_name of the vocabulary to import into

I can't see any handling of this that allows a machine name. There's this:

      $vocabulary = taxonomy_vocabulary_load($options['vocabulary_id']);

But API docs (http://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.module/functi...) say this only takes a vid.

Comments

jaydub’s picture

For what it's worth I just ran some imports via Drush and it works with vocabulary machine names. I did take a look into the guts and there did appear to be calls to drupal core api functions that attempt to find a vid from a machine name. Have you actually tried with machine name on an import just to see?

Daniel_KM’s picture

Hi,

A patch allows to import vocabulary by machine name (#1395090: Drush support issues): if vid is not numeric, the module checks if it's a machine name.
Does it work fine?

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management