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.

Parameters

$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

taxonomy_vocabulary_load()

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

File

drupal-7.x/modules/taxonomy/taxonomy.module, line 1368
Enables the organization of content into categories.

Code

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