- All vocabularies no longer have numerically indexed
vidvocabulary identifiers. Instead, vocabularies are referenced exclusively by the
$vocabulary->machine_nameproperty, which existed previously but now is the only identifier.
- Machine names may no longer be changed on vocabularies after they have been created.
$termvariables previously used both
$term->vocabulary_machine_nameto reference their parent vocabulary.
$term->vidno longer exists at all, and
$term->vocabulary_machine_namehas been renamed to just
$term->vocabularyto bring it inline with
$user->roles, which both reference just machine names.
- A number of functions that used to take
$vidparameters now take machine names instead:
taxonomy_term_load_children($tid, $vid = 0)=>
taxonomy_term_load_children($tid, $vocabulary_name = NULL)
taxonomy_get_tree($vid, $parent = 0, $max_depth = NULL, $load_entities = FALSE)=>
taxonomy_get_tree($vocabulary_name, $parent = 0, $max_depth = NULL, $load_entities = FALSE)
taxonomy_vocabulary_load_multiple($vids = array())=>
taxonomy_vocabulary_load_multiple($machine_names = array())
taxonomy_get_vocabularies()has been restored to have parity with Drupal 7.
taxonomy_vocabulary_machine_name_load($name)is deprecated, since all vocabularies are now loaded by name.
- Permissions for edit terms in x and delete terms in x now use the machine name instead of the vid.
Introduced in branch:
Introduced in version: