function taxonomy_vocabulary_machine_name_load

7.x taxonomy.module taxonomy_vocabulary_machine_name_load($name)

Return the vocabulary object matching a vocabulary machine name.


$name: The vocabulary's machine name.

Return value

The vocabulary object with all of its metadata, if exists, FALSE otherwise. Results are statically cached.

See also


3 calls to taxonomy_vocabulary_machine_name_load()
taxonomy_allowed_values in drupal/modules/taxonomy/taxonomy.module
Returns the set of valid terms for a taxonomy field.
taxonomy_autocomplete_validate in drupal/modules/taxonomy/taxonomy.module
Form element validate handler for taxonomy term autocomplete element.
taxonomy_help in drupal/modules/taxonomy/taxonomy.module
Implements hook_help().
1 string reference to 'taxonomy_vocabulary_machine_name_load'
taxonomy_form_vocabulary in drupal/modules/taxonomy/
Form builder for the vocabulary editing form.


drupal/modules/taxonomy/taxonomy.module, line 1379
Enables the organization of content into categories.


function taxonomy_vocabulary_machine_name_load($name) {
  $vocabularies = taxonomy_vocabulary_load_multiple(NULL, array('machine_name' => $name));
  return reset($vocabularies);