Download & Extend

Add means of batch importing taxonomy definitions

Project:Install Profile API
Version:6.x-2.x-dev
Component:CRUD functions and includes
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)
Issue tags:taxonomy

Issue Summary

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

Comments

#1

bookmarking this!

#2

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

#3

Status:active» needs review

Updated status to needs review.

#4

Status:needs review» fixed

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

#5

Status:fixed» closed (fixed)

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

nobody click here