1 taxonomy.module taxonomy_vocabulary_get_names()

Get names for all taxonomy vocabularies.

This function previously queried the database for a list of vocabulary names, but now is unnecessary as vocabulary names are stored exclusively in configuration. The return value is compatible with that of loading the full vocabularies through taxonomy_vocabulary_load_multiple().

Return value

An associative array of objects keyed by vocabulary machine name with: information about taxonomy vocabularies. Each object has properties:

  • name: The vocabulary name.
  • machine_name: The machine name.

Deprecated

since 1.0

See also

taxonomy_vocabulary_load_multiple()

File

core/modules/taxonomy/taxonomy.module, line 839
Enables the organization of content into categories.

Code

function taxonomy_vocabulary_get_names() {
  watchdog_deprecated_function('taxonomy', __FUNCTION__);
  return taxonomy_vocabulary_load_multiple(FALSE);
}