Add means of batch importing taxonomy definitions

Shawn_Smiley - March 27, 2009 - 02:21
Project:Install Profile API
Version:6.x-2.x-dev
Component:CRUD functions and includes
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Issue tags:taxonomy
Description

I just had a need on a project to be able to batch import a series of taxonomy definitions so I added a new function to the taxonomy.inc file (see attached patch).

This function take an array of taxonomy definitions and terms and passes them to the existing install_taxonomy_add_vocabulary() and install_taxonomy_add_term() functions.

Hopefully others will find this useful as well.

AttachmentSize
taxonomy.inc_.patch1.61 KB

#1

mcfilms - March 27, 2009 - 02:45

bookmarking this!

#2

DamienMcKenna - March 27, 2009 - 02:59

There you go, spoiling all my fun with 80 individual install_taxonomy_add_term lines ;-) Good idea.

#3

Shawn_Smiley - March 28, 2009 - 05:24
Status:active» needs review

Updated status to needs review.

#4

James Andres - June 1, 2009 - 22:21
Status:needs review» fixed

Seems like a great idea! Committed (with a few minor adjustments for Drupal coding style)

#5

System Message - June 15, 2009 - 22:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.