1 taxonomy.module taxonomy_vocabulary_load($machine_name)

Return the taxonomy vocabulary entity matching a vocabulary ID.

Parameters

$machine_name: The vocabulary's machine name.

Return value

TaxonomyVocabulary|false: The taxonomy vocabulary, if it exists, FALSE otherwise. Results are statically cached.

See also

taxonomy_vocabulary_machine_name_load()

File

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

Code

function taxonomy_vocabulary_load($machine_name) {
  $vocabularies = taxonomy_vocabulary_load_multiple(array($machine_name));
  return reset($vocabularies);
}