Error generating >1 vocabulary

effulgentsia - October 30, 2009 - 23:27
Project:Devel
Version:7.x-1.x-dev
Component:devel_generate
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Seems like the vocabulary machine_name is set to empty string, and Field API is choking on non-unique machine_name for vocabulary. Adding $voc->machine_name = $voc->name; prior to calling taxonomy_vocabulary_save() within devel_generate_vocabs() fixes it, but is probably the wrong way to fix it. I leave it to you to figure out the right way :).

 
 

Drupal is a registered trademark of Dries Buytaert.