taxonomy_vocabulary_load
Drupal 7 taxonomy_vocabulary_load($vid)
Return the vocabulary object matching a vocabulary ID.
Parameters
$vid: The vocabulary's ID.
Return value
The vocabulary object with all of its metadata, if exists, FALSE otherwise. Results are statically cached.
See also
taxonomy_vocabulary_machine_name_load()
45 calls to taxonomy_vocabulary_load()
1 string reference to 'taxonomy_vocabulary_load'
File
- modules/
taxonomy/ taxonomy.module, line 1244 - Enables the organization of content into categories.
Code
function taxonomy_vocabulary_load($vid) {
$vocabularies = taxonomy_vocabulary_load_multiple(array($vid));
return reset($vocabularies);
}

