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 |
Jump to:
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.
| Attachment | Size |
|---|---|
| taxonomy.inc_.patch | 1.61 KB |

#1
bookmarking this!
#2
There you go, spoiling all my fun with 80 individual install_taxonomy_add_term lines ;-) Good idea.
#3
Updated status to needs review.
#4
Seems like a great idea! Committed (with a few minor adjustments for Drupal coding style)
#5
Automatically closed -- issue fixed for 2 weeks with no activity.