What is the function used to create taxonomy terms in Drupal from the code?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
For Drupal 7, it's taxonomy_term_save(), by the way.
Drupal 7 version looks like this:
A module I was writing needed a specific vocabulary with hierarchical terms. I wrote this function to save the terms:
Why don't check the API docs? The answer is right there. http://api.drupal.org/api/function/taxonomy_save_term/6