Active
Project:
Taxonomy CSV import/export
Version:
7.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 May 2012 at 15:04 UTC
Updated:
10 Aug 2012 at 14:14 UTC
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
Comment #1
jaydub commentedFor 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?
Comment #2
Daniel_KM commentedHi,
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