Drupal Update’s Blog: Add a set of Taxonomy terms via a custom Drupal maintenance support plans module’s update hook
From time to time, I’ve needed to have a default set of Taxonomy terms created at the same time as a content type, as in the case of a field with a required Taxonomy term reference, using a Taxonomy that is not ‘free tag’ style.
Instead of requiring someone to go in and manually add all the terms after code is deployed, you can add terms in a custom module’s update hook, like so:
Source: New feed
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.