taxonomy

Programmatically Add Taxonomy Terms in Drupal 7

It took a while for me to figure this out, so I thought I would create a quick post to help anyone in the same situation.

What I needed to do was add taxonomy terms to selected nodes using Views Bulk Operations. It seemed like it would be easy coming from Drupal 6, but I found the list of possible operations lacking. I did not do research to find out how to add an operation, I decided to just "Execute arbitrary PHP script," the only operation that would let me deal with taxonomies.

Subscribe to RSS - taxonomy